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
Even with correct Admin key, I'm getting this error when running gatsby develop. FaunaDb documentation says:
"You would see the following error:
{
"errors": [ { "code": "unauthorized", "description": "Unauthorized" } ]
}
If your application is using one of the native Drivers, you should create a new client instance using the user’s token as the secret. Some drivers can create session clients in which the underlying HTTP connection is shared, so that you can intermingle queries using different tokens easily."
How do I create a new client instance using user's token?
The text was updated successfully, but these errors were encountered:
ERROR
[Unauthorized: unauthorized] {
description: 'Unauthorized',
requestResult: RequestResult {
method: 'POST',
path: '',
query: null,
requestRaw: '{"let":[{"result":{"match":{"index":"allSignatures"},"terms":[]}}],"in":{"map":{"lambda":"ref","expr":{"get":{"var":"ref"}}},"collection":{"select":"data","from":{"paginate":{"var":"result"},"size":101}}}}',
requestContent: Expr { raw: [Object] },
responseRaw: '{"errors":[{"code":"unauthorized","description":"Unauthorized"}]}',
responseContent: { errors: [Array] },
statusCode: 401,
responseHeaders: {
connection: 'keep-alive',
'content-length': '65',
'content-type': 'application/json;charset=utf-8',
date: 'Mon, 13 Jul 2020 10:44:01 GMT',
'www-authenticate': 'Basic realm="Unauthorized"',
'x-faunadb-build': '20.07.00.rc2-bdcd631',
'x-txn-time': '1594637040944308'
},
startTime: 1594637040116,
endTime: 1594637041301
}
}
Even with correct Admin key, I'm getting this error when running
gatsby develop
. FaunaDb documentation says:"You would see the following error:
{
"errors": [ { "code": "unauthorized", "description": "Unauthorized" } ]
}
If your application is using one of the native Drivers, you should create a new client instance using the user’s token as the secret. Some drivers can create session clients in which the underlying HTTP connection is shared, so that you can intermingle queries using different tokens easily."
How do I create a new client instance using user's token?
The text was updated successfully, but these errors were encountered: