Unexpected 500 on all API-calls


I suddenly got 500 on requests to the API while I was maintaining our webpage yesterday. I did not make any changes that should cause different behaviour towards the API, so I wondered if there is some known internal server errors at the moment? Alternatively; if there is some use limit or potential timeouts visible to administrators/maintainers that I may have exceeded?

I get the following error message in the browser and when trying to build the project (have removed the exact repo-name because it is set to Public):
Error: Unexpected status code [500] on URL https://.cdn.prismic.io/api/v2/documents/search?page=1&pageSize=1&ref=YXfj2BMAACQA4lTs&q=%5B%5Bat(document.type%2C%20%22homepage%22)%5D%5D

What I believe to be a similar topic: Response 500 for all request to api browser

Thanks in advance.

Hi @prismic15

Thanks for reaching out.

Can you please share with us (in a private message if necessary) your repository name, so I try to reproduce the issue on my side
Also, do you get this error every time you build your project?

Looking forward to your reply,

Repository name sent via private message.

Every time I try to build or launch the dev-version I get the error message when the webpage is trying to collect page data. Technically, the API-calls is done as part of getStaticProps, if thats helpful to reproduce the context.

Note; the errors started occurring on Tuesday, and I have not experienced something similar with Prismic earlier while working on/maintaining the webpage - even with completely similar request/queries.

1 Like

Hi @prismic15

I've been able to reproduce the issue, and in fact, the error also exists when querying the rest of API, and it seems to be related to JSON responses, as it works when trying to view the content as HTML in the API browser.

For that, I have created an issue in our tracker to have someone from our dev team work on it.

I have got some feedback from our DevOps team that the issue has been fixed for your repo, can you confirm?

Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.