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

Migrate from Axios to the built-in Fetch API #335

Open
MrRefactoring opened this issue Dec 29, 2024 · 1 comment
Open

Migrate from Axios to the built-in Fetch API #335

MrRefactoring opened this issue Dec 29, 2024 · 1 comment
Milestone

Comments

@MrRefactoring
Copy link
Owner

No description provided.

@MrRefactoring MrRefactoring added this to the v5.0.0 milestone Dec 29, 2024
@MrRefactoring MrRefactoring changed the title Drop browser support Migrate from Axios to the built-in Fetch API Jan 3, 2025
@uncaught
Copy link

Just a little caveat with Axios: When you give it a string as data, it will not add the json content type header. At least this was my conclusion when I ran into 400 errors when trying this:

await v3.projectProperties.setProjectProperty({
    projectIdOrKey: jiraProjectId,
    propertyKey: 'my-key',
    propertyValue: 'a-string-value',
  });

I had to wrap my value into an object for Axios to set the correct header.

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

No branches or pull requests

2 participants