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

Encoding error while generating example #296

Open
oliviermilla opened this issue Sep 29, 2014 · 7 comments
Open

Encoding error while generating example #296

oliviermilla opened this issue Sep 29, 2014 · 7 comments

Comments

@oliviermilla
Copy link

Generating examples, I get

38 examples, 0 failures, 38 passed

Finished in 4.088023852 seconds
Writing examples to a file
/home/muichkine/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.6/lib/active_support/core_ext/object/json.rb:34:in `encode': "\xFF" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

Any hint on what could trigger the error?

@jankeesvw
Copy link

Got the same issue..

@yaneq6
Copy link

yaneq6 commented Sep 30, 2015

Me too

[EDIT]
Ok, in my case fixture_file_upload makes that error happened

@pavloo
Copy link

pavloo commented Dec 9, 2015

Any updates on this?

@hossenlopp
Copy link
Contributor

I have this same issue with my api calls that require files to be uploaded. The writer code is attempting to turn the files into JSON. I submitted a pull request with a simple fix to turn the file parameters into strings that represent that a file was uploaded in the example.

@roolo
Copy link

roolo commented Feb 11, 2016

Maybe at least some workaround?

@Pajk
Copy link
Member

Pajk commented Feb 12, 2016

@hossenlopp merged
@muichkine pls test with latest apipie from github and then close the issue

@roolo
Copy link

roolo commented Feb 15, 2016

@Pajk: Even with #429, it cause same error for me. Do I need to cleanup something? I already tried to delete doc/apipie_examples.json

(My Apipie-rails head is 9ec60c5)

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

7 participants