function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IceEngineIceEngine 

Chatter handler Bad Request 400 error

hi everyone,

i came up with a error when upload a file using Chrome. (yes, not IE)

when uploading, an error shows, but then refresh the page, the file uploaded successfully.

this error don't shows at chatter tab, but shows at Account feed, Contact feed.

 

any help would be appreciated!

Request URL:https://ap.salesforce.com/chatter/handlers
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryoXgeuyXh213NtnNr
Origin:https://ap.salesforce.com
Referer:https://ap.salesforce.com/0031000000PlXua
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Request Payload
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="chatterFile"; filename="20131210_093634_220.tif"
Content-Type: image/tiff


------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="fileName"

20131210_093634_220
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="desc"


------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="hiddenFileName"

C:\fakepath\20131210_093634_220.tif
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="shareOption"

pvt
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="feedItemType"

ContentPost
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="entityId"

0031000000PlXua
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="feedItemVisibility"


------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="topicIds"


------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="feedType"

ENTITY
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="q"

;postFile
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="refreshRecentFiles"

false
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="token"

XxVHXM7RplnlEGEmV7osBlxOwx2cmNf62_WKf6Q8YuWFGOi03GvWyBiZerXmaM7h1f7jEXdiGZTpBGCISTJp3CKgDs7oRtpy8PJvn1sf4SzFFMLt4crjiE1h53H9E1lojc3AyDuGkunGXJ.c_7a_J7Rxk6Q=
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="fileName"

20131210_093634_220
------WebKitFormBoundaryoXgeuyXh213NtnNr
Content-Disposition: form-data; name="desc"


------WebKitFormBoundaryoXgeuyXh213NtnNr--

 

Request URL:https://ap.salesforce.com/chatter/handlers
Request Method:POST
Status Code:400 Bad Request
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:ja,en-US;q=0.8,en;q=0.6,zh-CN;q=0.4,zh;q=0.2,zh-TW;q=0.2
Authorization:xxxx
Connection:keep-alive
Content-Length:0
Cookie:web_core_geoCountry=jp; IS3_History=1386451449-1-55_0--1+1--1+5--1+7--1+10--1+18--1+25--1__0-1-5-7-10-18-25_; lastlist=/_ui/core/chatter/files/FileDetailPage; setupopen=; sid=00D10000000KCvW!ARMAQJqROF7VMuyIWQRRKAQVtnVcSm6xbgY4ma3O8qFZRjKBbUH32Zb7d_nHG1F.BSstVBQBIRdf6gtKPHg1s2cvT6j0vXBg; sid_Client=0000000wjoG0000000KCvW; clientsrc=113.36.149.11; oid=00D10000000KCvW; rememberUn=true; login=xxx@yyy.com; com.salesforce.LocaleInfo=jp; oinfo="c3RhdHVzPUZSRUUmdHlwZT0zJm9pZD0wMERFMDAwMDAwMGE1bzk="; sfdc_lv2="KxG83HhrFTMdewxwgtakJU9TRpu522YkBLTExcx+V7AVPHrtBwVF4wSLDSAgEAUQJBHtl8qQChix6Zqo5p9n8kkiDf+O7IQbMuKyAiFso9SxSJeQ3ymnzh8gy1R24QVTZZysGprdzBdasuRVIspCPFJw6GY1vGCLoZg3r0mZGNqkGgY3m45s6q"; disco=E:00DE0000000a5o9:005E0000000f2D3:0; autocomplete=1; webact=%7B%22l_vdays%22%3A1%2C%22l_visit%22%3A1386637878824%2C%22session%22%3A1386643243299%2C%22l_search%22%3A%22%22%2C%22l_dtype%22%3A%22Typed%2FBookmarked%22%2C%22l_page%22%3A%22APPX%3Aus%3Asetupmodule%22%2C%22counter%22%3A4%2C%22pv%22%3A23%2C%22f_visit%22%3A1386552061368%2C%22version%22%3A%22w172.1%22%2C%22customer%22%3A1386552061368%2C%22d%22%3A%2270130000000sUVq%22%2C%22l_cloud%22%3A%22No%20Cloud%22%2C%22seg%22%3A%22customer%3Ajp%22%2C%22db%22%3A%7B%22name%22%3A%22eiko%20design%20%26%20creation%20co%20ltd%22%2C%22size%22%3A%22%22%2C%22ind%22%3A%22manufacturing%3Amanufacturing%22%2C%22cmp%22%3A%22%22%2C%22aud%22%3A%22smb%3Amanufacturing%22%7D%2C%22doco%22%3A%7B%22name%22%3A%22%22%2C%22city%22%3A%22%22%2C%22size%22%3A%22%22%2C%22sales%22%3A%22%22%2C%22ind%22%3A%22%22%7D%2C%22elq%22%3A%2226482984-afd8-4040-a19a-ebd3379e28b1%22%2C%22developer%22%3A1386643243299%7D; s_vi=[CS]v1|29528D7E85489EA7-40000101200601D3[CE]; inst=APP1
Host:ap.salesforce.com
Origin:https://ap.salesforce.com
Referer:https://ap.salesforce.com/0031000000PlXua
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
X-Requested-With:XMLHttpRequest
Response Headersview source
Cache-Control:private
Content-Type:application/json; charset=UTF-8
Date:Tue, 10 Dec 2013 02:58:35 GMT
Transfer-Encoding:chunked

 

 

Ashish_SFDCAshish_SFDC

Hi ,

 

 

As you are not facing any issue on IE this is a browser issue and not a Salesforce related one. 

 

This is a Chrome Cookie issue, you have to delete the Cookie from your browser and that will solve the problem, 

 

If you wish to Clear All Cookies, it will save time but will delete all the Cookies.

 

See the steps in the link below, well explained with Images.

 

Chrome | Settings | Show advanced settings... | Privacy | Content Settings | All Cookies and Site Data | Browse through the list and delete the Salesforce related Cookies | Ok/ Save. 

 

http://timourrashed.com/how-to-fix-the-400-bad-request-error-message-from-a-website/

 

 

Regards,

Ashish

 

 

 

IceEngineIceEngine

Thank you Ashish, i'll have a try

Douglas AyersDouglas Ayers
@IceEngine, did you ever resolve your issue? I'm getting the 400 Bad Request in both Chrome and Firefox even after clearing my browser cookies/temp/history. Seems to occur with files larger than 5 MB despite Chatter saying the max size is 2 GB.
IceEngineIceEngine
re: @DouglasCAyers
no, and it occurs with any file size for me