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 the base url for makeRequest function #1272

Closed
wants to merge 2 commits into from
Closed

Fix the base url for makeRequest function #1272

wants to merge 2 commits into from

Conversation

webstackdev
Copy link
Contributor

Summary

Fix the URL passed to Axios by makeRequest

Description

When you use the makeRequest function in a JS migration script, I encountered a URL not found error because the current makeBaseUrl function does not prepend the protocol and domain to the URL.

Motivation and Context

I'm trying to set up a CI/CD pipeline for a Contentful project. I need the makeRequest function for a migration.

  • Implemented feature
  • Feature with pending implementation

The makeBaseUrl function returns Resource Not Found errors because the scheme and Contentful domain are not prepended to the URL. This fix hard codes the scheme and domain in code.
@webstackdev webstackdev requested a review from a team as a code owner November 23, 2023 09:40
@webstackdev webstackdev deleted the fix/baseurl-for-makerequest branch November 23, 2023 09:43
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.

None yet

1 participant