-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[BUG][Ruby][Faraday] Request options of build_request is empty #10137
Labels
Comments
Can you please file a PR with the suggested fix? |
@wing328 Can this PR be updated and merged since its a blocker in using the API in production. |
@dkliban I could see similar change has been done by you, so can you please have a look on the commits and have this issue fixed. |
5 tasks
wing328
pushed a commit
that referenced
this issue
Oct 2, 2021
* Update default timeout of Faraday request to 60 seconds * Fix request options of Ruby Faraday client
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
openapi-generator version
openapi-generator-cli:v5.1.1
OpenAPI declaration file content or url
Steps to reproduce
Using the client and hit API as follows:
Actual Ouput:
#<struct Faraday::Request method=:post, path="http://localhost.com:4000/api/v1/customer", params={}, headers={"Content-Type"=>"application/json", "User-Agent"=>"OpenAPI-Generator/1.0.0/ruby", "Accept"=>"application/json"}, body="{"name":"Test","age":"18"}", options=#<Faraday::RequestOptions (empty)>>
Expected Output:
Faraday Request Options contains timeout set as mentioned above.
Related issues/PRs
N/A
Suggest a fix
-req_opts.update :body => req_body
request.headers = header_params
request.body = req_body
request.url url
request.params = query_params
+request.options = req_opts
download_file(request) if opts[:return_type] == 'File'
The text was updated successfully, but these errors were encountered: