Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy does not give descriptive errors #366

Open
sosoxuc opened this issue Sep 13, 2024 · 1 comment
Open

Proxy does not give descriptive errors #366

sosoxuc opened this issue Sep 13, 2024 · 1 comment

Comments

@sosoxuc
Copy link

sosoxuc commented Sep 13, 2024

When I am trying to use proxy the server gives back error:

Screenshot 2024-09-13 at 3 10 11 PM

When I switch to remote api (api.turnkey.com) works fine

How should one guess what's wrong?

@r-n-o
Copy link
Contributor

r-n-o commented Sep 16, 2024

@sosoxuc this looks like a POST to the wrong host. I was able to repro with:

curl -X POST https://www.turnkey.com/public/v1/query/list_wallets
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /public/v1/query/list_wallets</pre>
</body>
</html>

The correct host to use to call our API endpoints is api.turnkey.com, not www.turnkey.com. Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants