Skip to content

fix(api): missing trailing / route for environment-document - #15

Open
Totodore wants to merge 1 commit into
Flagsmith:mainfrom
CentreonLabs:fix-edge-proxy-flagsmith
Open

fix(api): missing trailing / route for environment-document#15
Totodore wants to merge 1 commit into
Flagsmith:mainfrom
CentreonLabs:fix-edge-proxy-flagsmith

Conversation

@Totodore

Copy link
Copy Markdown

Each route was duplicated manually to work with trailing slash. However the /environment-document path was not. And the Rust SDK use /environment-document/ leading to 404.

Fix this by using the NormalizePathLayer rather than duplicating the routes which is error prone.

Side notes

Error message in the rust SDK are particularly not helpful: Failed to update environment: Flagsmith API error: . Will retry on next interval.. I will open a PR later to fix this.

Don't hesitate if this need any change.

@emyller emyller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — thanks for the contribution!

@emyller emyller left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking my previous approval back. Would you think it makes sense to ensure the intended behaviour in tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants