fromthere / dabr

Automatically exported from code.google.com/p/dabr
0 stars 0 forks source link

Error 400 when uploading Avatar #337

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by rud...@skoena.com on 24 May 2012 at 9:19

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

Original comment by terence.eden on 24 May 2012 at 9:50

GoogleCodeExporter commented 9 years ago
1) yes code is updated to latest rev.
2) this is my own server.

Original comment by rud...@skoena.com on 24 May 2012 at 10:06