Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix: handle token errors for local development #1452

Conversation

tbouliere-datasolution
Copy link
Contributor

In the case of local development, you can change the target back-end by modifying the value of the icmBaseURL variable in environment.developement.ts. By doing so, you will need a new api token.
However, as your local DNS is still "localhost", there is no token renewal and the old token is kept.
This small modification corrects this problem.

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

Issue Number: Closes #

What Is the New Behavior?

Does this PR Introduce a Breaking Change?

[ ] Yes
[ ] No

Other Information

In the case of local development, you can change the target back-end by modifying the value of the
variable icmBaseURL' variable in environment.developement.ts. By doing so, you will need a new api
token. However, as your local DNS is still \"localhost\", there is no token renewal and the old token
is kept. This small modification corrects this problem.
@SGrueber
Copy link
Collaborator

@tbouliere-datasolution We experienced also a different error message, if the token is invalid, that's why we generalized the condition a bit. Is the fix ok for you as it is now?
Thank you for this contribution, we suffered from the error page to to invalid tokens as well :-)

@tbouliere-datasolution
Copy link
Contributor Author

@SGrueber Yes it is working without side effect on our side.

@SGrueber SGrueber merged commit 57d0fa8 into intershop:develop Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants