API calls within widgets suddenly showing 204 error

Database & APIs

Hi everyone

I was testing my app over the weekend and suddenly my content from Contentful stopped showing within widgets. Weirdly, in the API test and response section the API call returns the data perfectly, but within a widget it seems to return a 204 error, despite being the same API call.

What have you tried so far?

I have tried making the API call in Postman, and this works perfectly. The test and response section works most of the time, but occasionally also returns a 204 error.

I have tried using a new page and testing the API call in a brand new widget, and I get the null response. I then made a button on this test page to make the API call and attach it to a page state - this is how I know it is a 204 error.

I have made a brand new project and re-created the API call and it works perfectly within a widget in a new project. This leads me to believe the issue lies with my project settings somehow?

I was creating a custom widget the night before this happened, but the project did work for about an hour the morning after, so I don't think this is related.

I'm not a tech guy so there may be a simple solution going right over my head. Thank you in advance!

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies