Appgyver + Backendless REST API integration ==> Error >> TypeError: Failed to execute 'fetch' on 'Window': Invalid namestatus: -1

Good day,

I’m trying to set up a simple login and registration interface with Backendless - but run into an error message:

Error: TypeError: Failed to execute ‘fetch’ on ‘Window’: Invalid namestatus: -1

Here’s the setup:

Data API Base:

Create Record Post Config:

Schema:

And it generates this error message:
Error: TypeError: Failed to execute ‘fetch’ on ‘Window’: Invalid namestatus: -1

This is what I followed:

https://backendless.com/docs/rest/users_login.html
https://symmetricdynamite.gitbook.io/backendless-appgyver/appgyver-registration

Thanks in advance for any direction you can provide.

1 Like

It may not be your only issue but the thing that caught me out when doing this was that in the Schema Backendless wants ‘login’ and ‘password’ (not email - because Backendless allows for other columns to be the id for logging in)…

Oli

Great idea Oli. Switching to “login” didn’t help.

The User Guide on Backendless says it only needs two inputs: “email” and “password”
https://backendless.com/docs/rest/users_user_registration.html

I was able to get it working with the REST Console in Backendless with just email and password:

Hi there @Ryan !

I can see in the first image you have a typo in the header key which should be “Content-Type”.
Also I believe you should not even need this header, as Composer sends ‘application/json’ requests by default :slight_smile:

1 Like

Both changing it to “Content-Type” and removing that header solved it.
THANK YOU!!!