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

JB returns output in a string when used with Rails 7.1 #43

Closed
HunterHillegas opened this issue Aug 21, 2023 · 2 comments
Closed

JB returns output in a string when used with Rails 7.1 #43

HunterHillegas opened this issue Aug 21, 2023 · 2 comments

Comments

@HunterHillegas
Copy link

HunterHillegas commented Aug 21, 2023

It seems that using the gem in conjunction with Rails 7.1, the output is all wrapped in double quotes (i.e. a string) instead of returning correctly. This of course breaks most clients.

i.e. the raw response is "{}" instead of {}.

Content-Type is still correct: Content-Type: application/json; charset=utf-8

@hatsu38
Copy link

hatsu38 commented Sep 13, 2023

I have the same problem and am looking for a solution.

@amatsuda
Copy link
Owner

@HunterHillegas Thank you for reporting this issue! This issue was caused by an incompatible change in Action View via rails/rails@ee68644, and has been fixed via fb4b0de which is included in version 0.8.1 gem release.

Please let me know if it still doesn't work for you.

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

3 participants