Skip to content

disableProxy option, added catch to axios get #232

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

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

kel666
Copy link
Contributor

@kel666 kel666 commented Apr 8, 2021

Hi, recently I had problems using swagger-typescript-api at work.

After some investigations I found that our corporate proxy was the problem, and was simply solved by adding "proxy: false" to Axios options.

I also added a catch clause in the Axios GET to print out some infos and to avoid missing "catch" error from nodeJS.

Hope you will include it in next release!

Tnx
Fabio

@js2me
Copy link
Member

js2me commented Apr 23, 2021

Hello @kel666 thanks for your PR!

@js2me js2me merged commit f941a3c into acacode:next Apr 23, 2021
js2me added a commit that referenced this pull request Apr 29, 2021
* Consider 2xx a successful status (#238)

* fix: add array params with key (#237)

* fix: add array query params with key

* chore: use encoded key and value for array params

Co-authored-by: Sascha Galley <[email protected]>

* disableProxy option, added catch to axios get (#232)

* fix(types): add silent as param in declarations (#241)

* axios file upload formData Type (#244)

* axios file upload formData Type

* fix error FormData is not undefined. when serverside request

Co-authored-by: guhyeon <[email protected]>

* docs: update CHANGELOG

* chore: make property instance public

* chore: refresh generated schemas

* fix: variable name "params" doesn't uniq (thanks @mixalbl4-127)

* chore: replace log to errorLog

* refactor: resolving specific arg names

* docs: update CHANGELOG

* feat: --extract-request-body cli option (extractRequestBody: false); refactor: logger; BREAKING_CHANGE: remove deprecated code in apiConfig

* fix: utils type in .d.ts

* Add TSDoc tag for deprecated routes (#246)

* chore: refresh generated schemas; fix: form data body for axios request method

* bump: up version to 9.0.0

Co-authored-by: Joonas <[email protected]>
Co-authored-by: Sascha Galley <[email protected]>
Co-authored-by: Sascha Galley <[email protected]>
Co-authored-by: Fabio <[email protected]>
Co-authored-by: Matt R. Wilson <[email protected]>
Co-authored-by: guhyeon <[email protected]>
Co-authored-by: guhyeon <[email protected]>
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