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

import_users fails with EOFError #56

Closed
lazywithclass opened this issue Mar 30, 2016 · 0 comments
Closed

import_users fails with EOFError #56

lazywithclass opened this issue Mar 30, 2016 · 0 comments

Comments

@lazywithclass
Copy link

Hello, thanks for this library!

I am using it so that our users could be periodically synced in auth0, like so:

file = Tempfile.new("users-to-copy-to-auth0")
users = [] # I get users from the db
begin
  file.write(users.to_s)
  puts "before"
  @@auth0.import_users(file, "Username-Password-Authentication")
  puts "after"
ensure
  file.close
  file.unlink
end

"after" never gets printed, instead I get EOFError: end of file reached after approx 1min, even though the file is just 4.5kb, so it looks like a timeout.

I have to say I'm not a ruby dev, I've just picked up a task that has to be done, this to say that I might be doing something really stupid.

Thanks for any help / hint.

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

2 participants