Neopets error "Oops, no stock ID"

Discussion in 'Code Snippets and Tutorials' started by tac123, Oct 28, 2007.

  1. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    Does anyone know what the neopets error "Oops, no stock ID" means? It happens during the buy process. I can buy one item just fine, but when buying a 2nd or 3rd of the same item I sometimes get this error.
     
  2. skateelement1124

    Joined:
    Oct 28, 2007
    Messages:
    80
    Likes Received:
    0
    yes that happens if you press the back button and make an offfer when the item has beenout of stock for a while.
     
  3. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    wha is happening is thta either the id of the item has expired or the program is not posting a shop id, if you put a breakpoint in the first line of the regest sub of your http wrapper then you can make sure taht there is a sid added
     
  4. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    The problem is that I'm getting this error when the item is in stock. It is possible that the stock_id number changed between my last buy and my current and I haven't updated it, but when I try doing it by hand and looking at the stock_id's being passed, they always appear to remain the same.

    the_skip: When you said "sid" did that mean stock_id or shop id? I'll look into both and see if I can fix this issue.
     
  5. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    So apparently you get this error when you make a POST to purchase an item, and then if you make that exact same POST again you get this error.