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

Getting NoMethodError Exception: undefined method `to_sym' when calling API client and using wasabi 3.6.1, savon 2.11.1 #1003

Open
Leo137 opened this issue Feb 21, 2024 · 1 comment

Comments

@Leo137
Copy link

Leo137 commented Feb 21, 2024

Bug report

Current behavior:

Upon sending an client call to a method that needs arguments, i get the following error:
*** NoMethodError Exception: undefined method `to_sym' for {"getToken"=>{"pszXml"=>["xsd", "string"]}}:Hash

However, if i go back to wasabi 3.5.0, client call works normally.

Steps to reproduce current behavior:

  • Use savon 2.11.1
  • Use wasabi 3.6.1
  • Make a Savon client call to a method that uses arguments (ie: client.call(:authenticate, message: { username: "luke", password: "secret" }) )

Expected behavior:

Client call should not throw undefined method `to_sym' exception.

System information:

  • ruby version: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux-musl]
  • savon version: 2.11.1
@pcai
Copy link
Member

pcai commented Feb 27, 2024

Hi - can you provide a stacktrace? Does this issue reproduce in the latest versions of savon and wasabi?

The diff for 3.5 to 3.6.1 is not that big (its mostly test files that changed) so any additional detail you can provide will be helpful: savonrb/wasabi@v3.5.0...v3.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants