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
console.log('About to make a request', url, init);
258
258
const response =awaitfetch(url, init);
@@ -270,9 +270,9 @@ This is intended for debugging purposes only and may change in the future withou
270
270
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
* @param {string} [opts.baseURL=process.env['GRID_BASE_URL'] ?? https://api-alpha.grid.is] - Override the default base URL for the API.
@@ -167,8 +167,8 @@ export class GRID {
167
167
...opts
168
168
}: ClientOptions={}){
169
169
if(bearerToken===undefined){
170
-
thrownewErrors.GRIDError(
171
-
"The GRID_API_TOKEN environment variable is missing or empty; either provide it, or instantiate the GRID client with an bearerToken option, like new GRID({ bearerToken: 'My Bearer Token' }).",
170
+
thrownewErrors.GridError(
171
+
"The GRID_API_TOKEN environment variable is missing or empty; either provide it, or instantiate the Grid client with an bearerToken option, like new Grid({ bearerToken: 'My Bearer Token' }).",
`Cannot stringify type ${typeofvalue}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
0 commit comments