Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Adding a device fails with a 415 error #229

Closed
foozmeat opened this issue Oct 6, 2015 · 4 comments
Closed

Adding a device fails with a 415 error #229

foozmeat opened this issue Oct 6, 2015 · 4 comments
Labels

Comments

@foozmeat
Copy link

foozmeat commented Oct 6, 2015

With cupertino 1.3.4

/Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:304:in `fetch': 415 => Net::HTTPUnsupportedMediaType for https://developer.apple.com/services-account/QH65B2/account/ios/device/validateDevices.action?struts.token.name=clientToken&clientToken=NI48Q6R918K8SKO5C5IHMVJHSVPT68NG&register=multiple&deviceNames=&deviceNumbers= -- unhandled response (Mechanize::ResponseCodeError)
    from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize.rb:407:in `get'
    from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:45:in `block in get'
    from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:44:in `times'
    from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:44:in `get'
    from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize.rb:517:in `submit'
    from /Library/Ruby/Gems/2.0.0/gems/mechanize-2.5.1/lib/mechanize/form.rb:178:in `submit'
    from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/agent.rb:156:in `add_devices'
    from /Library/Ruby/Gems/2.0.0/gems/cupertino-1.3.4/lib/cupertino/provisioning_portal/commands/devices.rb:60:in `block (2 levels) in <top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/import.rb:5:in `block in <top (required)>'
@sfransen
Copy link

Use spaceship to do that part

Sent from my iPhone5

On Oct 30, 2015, at 8:53 AM, objectmethod notifications@github.com wrote:

me too


Reply to this email directly or view it on GitHub.

@objectmethod
Copy link

Yeah, that's what I did! Thanks

Sent from my iPhone

On Oct 30, 2015, at 2:23 PM, Steven Fransen notifications@github.com wrote:

Use spaceship to do that part

Sent from my iPhone5

On Oct 30, 2015, at 8:53 AM, objectmethod notifications@github.com wrote:

me too


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@aspcartman
Copy link

Emm, any way to fix this? I don't want to use spaceship...

@sfransen
Copy link

sfransen commented Nov 9, 2015

You just have to use a few lines os code to do add the devices have it in my Cupertino code

Sent from my iPhone5

On Nov 9, 2015, at 4:54 AM, ASPCartman notifications@github.com wrote:

Emm, any way to fix this? I don't want to use spaceship...


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

6 participants