You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use a client created with a custom node i got from NowNodes (which is in the form: https://vet.nownodes.io/<api-key>/), the api key part gets lost due to new URL(path, baseURL) when making a request.
How to fix:
the prefix of '/' should be removed from endpoints in thorest object in utils.
URL constructor examples:
new URL('/blocks/0', 'https://myNode.com/api-key').toString() = 'myNode.com/blocks/0'
new URL('/blocks/0', 'https://myNode.com/api-key/').toString() = 'myNode.com/blocks/0'
new URL('blocks/0', 'https://myNode.com/api-key').toString() = 'myNode.com/blocks/0'
new URL('blocks/0', 'https://myNode.com/api-key/').toString() = 'myNode.com/api-key/blocks/0'
Reproduction URL
No response
Reproduction steps
1. Create a client that is not a simple domain (i.e. https://example.com/some-text/)
2. Make a request to any endpoint. I use getGenesisBlock which sends a request to `/blocks/0`
Screenshots
No response
Logs
No response
OS
No response
The text was updated successfully, but these errors were encountered:
Description
When i use a client created with a custom node i got from NowNodes (which is in the form:
https://vet.nownodes.io/<api-key>/
), the api key part gets lost due tonew URL(path, baseURL)
when making a request.How to fix:
the prefix of '/' should be removed from endpoints in
thorest
object in utils.URL constructor examples:
Reproduction URL
No response
Reproduction steps
1. Create a client that is not a simple domain (i.e. https://example.com/some-text/) 2. Make a request to any endpoint. I use getGenesisBlock which sends a request to `/blocks/0`
Screenshots
No response
Logs
No response
OS
No response
The text was updated successfully, but these errors were encountered: