Skip to content

robosats api in node/nuxt 3 app invalid token #2019

Closed Answered by KoalaSat
learntheropes asked this question in Q&A
Discussion options

You must be logged in to vote

This error

RoboSats API error: { bad_request: 'On the first request to a RoboSats coordinator, you must provide as well a valid public and encrypted private PGP keys' }

Means that you are not sending the PGP keys on headers with the first request of one specific robot to one specific coordinator (coordinators are totally independent from from each other and you should treat them like separate services)

This one

{ bad_request: 'Robot token SHA256 was provided in the header. However it is not a valid 39 or 40 characters Base91 string.' }

Means that you are sending somehow a wrongly formated robot token. You can find how tokens are created in client's code https://github.com/RoboSats/robos…

Replies: 8 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by KoalaSat
Comment options

You must be logged in to vote
1 reply
@KoalaSat
Comment options

Comment options

You must be logged in to vote
1 reply
@KoalaSat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KoalaSat
Comment options

@learntheropes
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@KoalaSat
Comment options

@learntheropes
Comment options

@KoalaSat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2018 on June 22, 2025 22:20.