Connect fuse app to homemade API

Hello,

A friend of mine is working on the API server and i am doing the app.

On a fetch call I can’t read informations in the json object I only got : “Fuse.Scripting.V8.Object” in the responseObject. What is it ?

Also I have made a button to try out the same code again but not working. The fetch call only appear when I start the simulation.

Any idea ?

Context file :

fetch('http://localhost:5000/register', {
    method: 'post',
    headers: { "Content-type": "application/json"},
    body: JSON.stringify({
      username: 'user3',
      password: '45',
      email: 'al@gl.com',
    }) ... and then / then / error.

And the js file from where calling this function :

function Register(arg) {
	BackEnd.fetchFunction();
}

If you have any exemple about how it should be arrange to have a good architecture I ll be glad.

Sorry about double post

Hi!
The bit about Fuse.Scripting.V8.Object probably means that you’re logging the object rather than the correct field inside of it. However, it’s not possible to see what the problem is based on the small snippets of code you’re posting. Please provide both the bit that fetches the data and the part that tries to display it.

Also: please don’t post multiple threads with the same subject. It’s much easier to provide help if the subject is more relevant to the contents. :slight_smile: