Export to GitHub

dabr - issue #337

Error 400 when uploading Avatar


Posted on May 24, 2012 by Helpful Bear

I get an error when uploading avatar?

Damn! Something went wrong. Sorry :-( code=400 status= image= info=Array ( [url] => https://api.twitter.com/1/account/update_profile_image.json [content_type] => application/json; charset=utf-8 [http_code] => 400 [header_size] => 1050 [request_size] => 532 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 1.52563 [namelookup_time] => 0.013813 [connect_time] => 0.176031 [pretransfer_time] => 0.507293 [size_upload] => 55370 [size_download] => 111 [speed_download] => 72 [speed_upload] => 36293 [download_content_length] => 111 [upload_content_length] => 55370 [starttransfer_time] => 0.507417 [redirect_time] => 0 [request_header] => POST /1/account/update_profile_image.json HTTP/1.1 User-Agent: Dabr Host: api.twitter.com Accept: / Authorization: OAuth oauth_consumer_key="oYZMHa63wTaotuDlWA7A", oauth_nonce="90f6009964160207e937d524986d77c5", oauth_signature="7pnyeyiffJ2NNkemZDNSgrBe018%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337850587", oauth_token="34570110-tF6g0mrKfZ6f0U2nNOOvL6zlWBrthN2OGVqfcZQj9", oauth_version="1.0" Content-Length: 55370 Content-Type: multipart/form-data; boundary=----------------------------cc8f05a46976

)

code=400

*Linux Ubuntu *PHP Version 5.2.11

Comment #1

Posted on May 24, 2012 by Happy Kangaroo

1) make sure you've updated tmhOAuth.php and all the other code. 2) Is this on a public server?

Comment #2

Posted on May 24, 2012 by Helpful Bear

1) yes code is updated to latest rev. 2) this is my own server.

Status: Accepted

Labels:
Type-Bug Priority-Medium