2

When querying the following endpoint and parameters: https://goerli.api.0x.org/swap/v1/quote?buyToken=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&sellAmount=1000000000000&sellToken=0x88D96a012a71f053041fe2BF27bC4703cebBB7b2

I get error like this:

 {
    "code": 100,
    "reason": "Validation Failed",
    "validationErrors": [
        {
            "field": "zippo",
            "code": 1010,
            "reason": "ZIPPO_CONTEXT_INVALID",
            "description": "Invalid zippo context"
        }
    ]
}

This endpoint is that I used before with the same params and it had worked well before. just I got the error from yesterday. I tested Mumbai endpoint too but it also returns the same error now.

Any help in understanding what is causing the issue would be helpful.

2
  • Same issue here. It worked yesterday but today (same code) it started giving this weird error. Maybe it's a Goerli endpoint issue?
    – Neurus
    Aug 17 at 6:38
  • Same issue, suddenly stopped working on testnets. Aug 17 at 12:54

1 Answer 1

1

0x team here. The ZIPPO error on goerli has been fixed! Thank you for your patience

Remember to use your API key in the header. Ex:

curl --location --request GET 'https://goerli.api.0x.org/swap/v1/quote?buyToken=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&sellAmount=1000000000000&sellToken=0x88D96a012a71f053041fe2BF27bC4703cebBB7b2' --header '0x-api-key: <insert-your-key>'
2
  • Thanks for fix. How about mumbai? I got the same error on mumbai as well. goerli api looks work well actually.
    – Luckydev
    Aug 19 at 7:13
  • As of 8/22, Mumbai should be fixed now as well
    – 0x_jess
    Aug 24 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.