Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sheldonvaughn
Copy link

@sheldonvaughn sheldonvaughn commented Jul 10, 2024

Description

An issue comes up when calling the getMagicAuth function:
{
"message": "Cannot GET //user_management/magic_auth/magic_auth_XXXXXXXXXXXXXXXX",
"error": "Not Found"
}

The crux of the issue is that there's a double slash getting appended to the front of the route after the base URL. In looking at the base URL, it includes an ending slash '/' and the path for the API call also includes a leading slash so I believe this to be the cause of the discrepancy.

@sheldonvaughn sheldonvaughn requested a review from a team as a code owner July 10, 2024 21:07
@sheldonvaughn sheldonvaughn requested review from jonatascastro12 and removed request for jonatascastro12 July 10, 2024 21:07
Copy link
Contributor

@PaulAsjes PaulAsjes left a comment

Choose a reason for hiding this comment

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

Good catch, can we make sure that the tests check for this specifically? We're ran into similar problems with leading slashes in other libraries.

@sheldonvaughn sheldonvaughn merged commit ffef303 into main Jul 11, 2024
@sheldonvaughn sheldonvaughn deleted the removeLeadingSlashFromFunctions branch July 11, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants