Skip to content

Gatsby-4: Changing environment throws an error when sourcing #117

@psykzz

Description

@psykzz

Once setup, if you change environment (but keeping the same key) you will get the following error.

{
  error_message: 'Failed to fetch items. Please try again with valid parameters.',
  error_code: 141,
  errors: { access_token: [ 'environment or access token is not matched.' ] }
}

Looks like we just need to include the environment + api_key in the cache key.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions