• Liitu täiesti tasuta

Can't make POST calls

Arutelu algatas Shmuel-Aharon Kam (Kahn / שמואל-אהרן קם (קאן kolmapäev, 29. jaanuar 2025
Kas selle lehega on probleeme?

Osalejad:

Seotud projektid:

Kuvatakse kõiki 11 postitust

I'm trying to implement the /Profile/Update API, which requires POST.
Strangely enough ALL of my attempts end with "HTTP/1.1 500 Internal Server Error".
I verified that this API call works in the API Explorer.
Here is the API URL that I'm using and the headers I'm sending.

Any insights would be helpful.

http://www.geni.com/api/profile-34838408159/update

Array
(

   [http] => Array
       (
           [method] => POST
           [header] => Content-type: application/json

Accept: application/json

           [content] => {"about_me":"Yankee Dooble"}
       )

)

The "Accept: application/json" is part of the 'header' value.

My immediate thought is that about_me is a kind of read-only because it is a localized value, returning the about_me for your selected language, default en-US, i.e you have to specify which language you want to update the about_me on.

Something like:

"detail_strings" : {
 "en-US" : {
  "about_me" : "Yankee Doodle"
 },
 "no" : {
  "about_me" : "Hmmm"
 }
}

I will make a test, - my current SDK test program is for reading data. I want to cover all variants for that before writing.

I'm not seeing the 500 in our logs but I may still be able to track it down through the load balancer. I'll let you know.

Shmuel-Aharon Kam (Kahn / שמואל-אהרן קם (קאן would you try that again and post here immediately after, to help me locate the call in our logs?

I realized that I wasn't posting the auth header. So I added that back in. Still same 500 Error.

Mike Stangel, any luck finding what's wrong with my POST calls?

HTTP/1.1 500 Internal Server Error NOW.

Shmuel-Aharon Kam (Kahn / שמואל-אהרן קם (קאן the request was received on our end as a GET, not a POST. You may need to check your usage of your HTTP library.

Ugh. Thanks

Kuvatakse kõiki 11 postitust

Loo tasuta konto või sisene et osaleda selles arutelus