client-js
client-js copied to clipboard
invalid token provided: illegal base64 data at input byte 1
Brief:
Trying to test my dfuse install, using examples/check-balance.ts with the following config (recommended here):
export NETWORK=0.0.0.0:8080 // using real IP
const client = createDfuseClient({
apiKey: "web_abcdef123456789",
network: DFUSE_API_NETWORK,
authUrl: "null://",
secure: false
})
Error:
An error occurred DfuseApiError: Unable to correctly decode provided token.
at DefaultHttpClient.<anonymous> (/newvolume/client-js/examples/node_modules/@dfuse/client/dist/lib/client/http-client.js:164:24)
at Generator.next (<anonymous>)
at fulfilled (/newvolume/client-js/examples/node_modules/@dfuse/client/dist/lib/client/http-client.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
description: 'Unable to correctly decode provided token.',
cause: undefined,
code: 'auth_invalid_token_error',
trace_id: 'ee76f63a26b30c06a541b0aa9a6ca0f9',
details: {
reason: 'rpc error: code = Unauthenticated desc = invalid token provided: illegal base64 data at input byte 1',
token: ''
}
}
Example completed.