Failing to create collection from REST API

I’m trying to create a collection from a REST API endpoint. I keep getting the error message “Cannot read properties of null (reading ‘reduce’)”.

In Postman i am able to successfully fetch data from my endpoint without any hiccups, in the weweb workflow editor, a REST API request successfully returns my data. The problem is in creating a collection using REST API as the source.

image

Did you try making the request from a server (by toggling the option in the collection)? Pretty sure the API you’re using prevents CORS from browsers.

Hie @Quentin , yes I am actually making the request from server.

Could you take a screenshot or a video of the whole config of the API call? It’s kinda hard to debug with just the error. Thanks

Sure,
This is the API configurations.

Thanks for assisting :slight_smile:

Ok, the API call seems legit to me.

Then, could you file a bug report on support.weweb.io? We’ll double-check if it’s not a WeWeb-related issue.

Sorry for the trouble :pray:

1 Like

Hi @takutitus :wave:

Just had a look at your project.

WeWeb doesn’t accept REST API calls on http. REST API requests made through our plugin need to be https