XRPL-Labs / xActivate

0 stars 0 forks source link

Testnet activations don't seem to work #12

Open WietseWind opened 9 months ago

WietseWind commented 9 months ago

While if calling the activation endpoint for a faucet enabled network directly, e.g.

https://xumm.app/api/v1/app/account-activation/{ott}/auto

... it works.

Endoint types (fyi)

KevinKoobs commented 9 months ago

@WietseWind The load on test/devnets for the rails information fails. Could it be that https://activate-account.xappscdn.com/ doesn't have access to https://xumm.app/api/v1/platform/rails?

WietseWind commented 9 months ago

Do you have more info? How does it fail? Headers? Response?

KevinKoobs commented 9 months ago

@WietseWind The only thing I can see is this: https://xrpl-labs.sentry.io/issues/4672680629/events/1af88f871ce84da988680c35678e9553/?project=4505957101797376

KevinKoobs commented 9 months ago

For now I've caught the error and put 'XRPL Testnet' or 'XAHAU Testnet' as default value

WietseWind commented 9 months ago

@KevinKoobs

@WietseWind The load on test/devnets for the rails information fails. Could it be that https://activate-account.xappscdn.com/ doesn't have access to https://xumm.app/api/v1/platform/rails?

  1. Easy to check: open your URL, open the console (regular browser) and enter:
fetch('https://xumm.app/api/v1/platform/rails')

You will notice a CORS error.

You're in xApp context. You need to call with JWT auth, to the jwt instead of platform endpoint to access with CORS. Or call from your backend to platform (which can be without auth for this endpoint) in which case you can debug @ your backend if you can call it (you can...)

@WietseWind The only thing I can see is this: https://xrpl-labs.sentry.io/issues/4672680629/events/1af88f871ce84da988680c35678e9553/?project=4505957101797376

  1. I don't have access there.

  2. Put 'XRPL Testnet' or 'XAHAU Testnet' where, and how does that fix it?