Function calls return 50x errors

Hi,

Since 2-3 hours I’m getting odd 50x errors both during runtime as well as during build time for my sites https://tmp.finansvalp.se (ba2febd5-460e-4cc1-9476-36a9938140ce) and https://stage.finansvalp.se (e0c5d382-f9e0-4200-bf77-14635292a363)

Example requests:
x-nf-request-id: 01GTVJHRGSWMQ2CPWGZ5MZNN4B
x-nf-request-id: 01GTVJJJ5TMR1C6AMJYWPRXPK1
x-nf-request-id: 01GTVMAES6RHZ2AMAGZHQJA5GR

It was working fine this morning as well as last week so I’m wondering where these issues are coming from.

I saw that you had these types of issues last week (Netlify Status - Increased HTTP 500 Errors on High-Performance Edge and Standard Edge Networks) - could this be related?

Thanks in advance.

This has today stopped being an issue. For example, builds are now done after ~2,5 mins while they timed out after close to 4 mins yesterday. Generating an article during build took twice as long yesterday.

Again, not sure what caused the issue since I’ve made no significant changes to the code.

I’m continuing to debug my get static props function.

That’s great news @andreas1! Definitely let us know if you need help with anything else.

Thanks @amelia

Would you have any idea as to why the time it takes to generate an article varies so much? I’ve made no changes to the code in getStaticProps (NextJS) and the API I’m calling responds within ~500ms. Still, generating an article usually takes ~30s but sometimes this can take closer to a minute or more.

hi

We can’t tell for sure but you can/should add more time logs ([Support Guide] Why is my function timing out?) to your code so you can see it on the build process.

Hopefully that’ll give you an idea why it’s taking this long.