Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonburke/585478a2b420f235e22cf9b15183a7d5 to your computer and use it in GitHub Desktop.
Save brandonburke/585478a2b420f235e22cf9b15183a7d5 to your computer and use it in GitHub Desktop.
Broken Neos Login
Tried the followng query, which was wrong...
> response = connection.post(
> headers: headers,
> path: '/Intakes',
> query: { PrimaryStaff: ["9f6c77f2-d1bd-4382-8ad0-ab7b00f80c2b"], FolderType: 0 }
> )
=> #<Excon::Response:0x00007fa65dd3ad00 @data={:body=>"{\"Message\":\"Object reference not set to an instance of an object.\"}"
Then tried body and convert to json which I’m pretty sure should be correct...
> response = connection.post(
> headers: headers,
> path: '/Intakes',
> body: { PrimaryStaff: ["9f6c77f2-d1bd-4382-8ad0-ab7b00f80c2b"], FolderType: 0 }.to_json
> )
puts response.body
^CTraceback (most recent call last):
1: from (irb):125
IRB::Abort (abort then interrupt!)
Can no longer log into Neos UI or get another response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment