[SOLVED] How to authenticate with self hosted parser server using django example

Hi!

I am trying to authenticate to my self-hosted parse server with my frontend set up exactly the same as this example. It works fine when I use

REQUEST_URL = 'https://authapi.moralis.io/challenge/request/evm'

but when I try to replace it with my parse-server URL it does not work.

REQUEST_URL ="http://my_parse_server_ip:1337/server/request/evm"

In the browser console, I get the following error:

TypeError: Cannot read properties of undefined (reading 'toHexString')
    at isHexable (ethers-5.2.umd.min.js:1:63686)
    at Object.hexlify (ethers-5.2.umd.min.js:1:66912)
    at JsonRpcSigner.<anonymous> (ethers-5.2.umd.min.js:1:628567)
    at step (ethers-5.2.umd.min.js:1:622680)
    at Object.next (ethers-5.2.umd.min.js:1:621940)
    at fulfilled (ethers-5.2.umd.min.js:1:621314)

The parse server is setup following this video .
Where to begin troubleshooting?

I think I am using the wrong REQUEST_URL, but unsure what to change it to.

I don’t see any errors in my parse server.

you don’t have to change this url, this is the main url that you have to use in order to get a message to sign, this url is from moralis auth API.

1 Like

if you use Django in backend, you don’t have to self host a parse server, you already have a Django backend

1 Like

Yes, that makes a lot of sense. Sorry for the bad question, just started learning about this.

1 Like