Failed to fetch

I use nem-sdk for browser app.
I create request from local machine and all works fine.
But when deployed to server all function crash with:
code: -1, data: TypeError: Failed to fetch

If open in safari

An SSL error has occurred and a secure connection to the server cannot be made.

I tried use default MainNet and another

nem.model.objects.create(‘endpoint’)(nem.model.nodes.defaultMainnet, nem.model.nodes.defaultPort)

nem.model.objects.create(‘endpoint’)(‘https://bit.diamonds’, 7890);

My deployed app use https

Have you node working over HTTPS? https://bit.diamonds:7890/ doesn’t look like working.

I don’t have my own node. I want use public node.
https://wallet-app-test.icex.ch/ - here is my app

So you must find nodes that works over https.
Example: https://shibuya.supernode.me:7891/chain/height
But I’m not sure if you don’t need some additional headers like ACAO for https calls.

2 Likes