Closed GoogleCodeExporter closed 9 years ago
I have no idea what would it be...
Can you check console output? First activate log output in options and then
check what application prints in console. You should see all steps while
building request like: "Createing builder object for URL: XXX", "Set request
data: XXX", "Set request headers: XXX" and so on.
Tell me what steps are omitted and I'll try to check what happening.
Original comment by jarro...@gmail.com
on 2 Feb 2012 at 2:58
Ok, this seemed to have stopped for a while, and just happened again. I think
that what's happening is that the parameters are being urlencoded, even though
the multipart/form-data Content-Type header is set. Even if I change the select
for the Content-Type, the value sent in the header isn't changed to
x-www-form-urlencoded, and the parameters are still urlencoded.
If I manually add the Content-Type=application/x-www-form-urlencoded header,
the request succeeds
Does that help?
Nice plugin though!
James.
Console:
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,667
[DEBUG] Restore response panel state to initial
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,669
[DEBUG] Start new request
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,670
[DEBUG] Change controls state.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,671
[DEBUG] Request form state snapshot.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,675
[DEBUG] Current state saved:
{"url":"http://rc.oms.local/api/v3/customercare/callingcards",
"post":"Cards%5B0%5D%5Bcard_type%5D=CC001.1&Cards%5B0%5D%5BComments%5D%5B0%5D%5B
comment%5D=Comment+on+card+one&Cards%5B0%5D%5Bdate%5D=2012-02-14+17%3A04%3A04+%2
B0000&Cards%5B0%5D%5BLocation%5D%5Blatitude%5D=37.785834&Cards%5B0%5D%5BLocation
%5D%5Blongitude%5D=-122.406417&Cards%5B0%5D%5Bjob_id%5D=89210",
"method":"POST", "formEncoding":"multipart/form-data",
"headers":[{"Content-Type":"multipart/form-data"}]}
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,676
[DEBUG] Adding state to history.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,678
[DEBUG] Adding new item to history.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,679
[DEBUG] Now history list contains 61 items out of 60 set in options.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,680
[DEBUG] Remove oldest history item to reach history limit.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,687
[DEBUG] Prepare variables.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,688
[DEBUG] Save URL value into suggestions.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,689
[DEBUG] Request will not use FormData class. Sendind traditional form
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,690
[DEBUG] Createing builder object for URL:
http://rc.oms.local/api/v3/customercare/callingcards and method: POST
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,690
[DEBUG] Set request data:
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,691
[DEBUG]
Cards%5B0%5D%5Bcard_type%5D=CC001.1&Cards%5B0%5D%5BComments%5D%5B0%5D%5Bcomment%
5D=Comment+on+card+one&Cards%5B0%5D%5Bdate%5D=2012-02-14+17%3A04%3A04+%2B0000&Ca
rds%5B0%5D%5BLocation%5D%5Blatitude%5D=37.785834&Cards%5B0%5D%5BLocation%5D%5Blo
ngitude%5D=-122.406417&Cards%5B0%5D%5Bjob_id%5D=89210
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,692
[DEBUG] =============================
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,693
[DEBUG] Add "Content-Type" header to headers list with value=multipart/form-data
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,694
[DEBUG] Set request headers:
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,694
[DEBUG] Content-Type: multipart/form-data
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,695
[DEBUG] Set request handlers.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,695
[DEBUG] Starting cookie cature (if enabled)
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,696
[DEBUG] All set. Sending...
XHR finished loading: "http://rc.oms.local/api/v3/customercare/callingcards".
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,816
[DEBUG] Request sent successfully. Building response view.
E7A4AE726BF3185D4BD2CCCCAE1AFC91.cache.html:3250(-:-) 2012-02-27 14:37:02,825
[DEBUG] Response panel has been filled wint new data
Request sent:
Request URL:http://rc.oms.local/api/v3/customercare/callingcards
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Charset:UTF-8,*;q=0.5
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-GB
Connection:keep-alive
Content-Length:293
Content-Type:multipart/form-data
Cookie:PHPSESSID=l3mule9ki31olj4jbmlh3baf94;
__utma=215252372.1020853785.1323862041.1330341506.1330353096.65;
__utmb=215252372.5.10.1330353096; __utmc=215252372;
__utmz=215252372.1323862041.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Host:rc.oms.local
Origin:chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like
Gecko) Chrome/17.0.963.56 Safari/535.11
Request Payload
Cards%5B0%5D%5Bcard_type%5D=CC001.1&Cards%5B0%5D%5BComments%5D%5B0%5D%5Bcomment%
5D=Comment+on+card+one&Cards%5B0%5D%5Bdate%5D=2012-02-14+17%3A04%3A04+%2B0000&Ca
rds%5B0%5D%5BLocation%5D%5Blatitude%5D=37.785834&Cards%5B0%5D%5BLocation%5D%5Blo
ngitude%5D=-122.406417&Cards%5B0%5D%5Bjob_id%5D=89210
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Length:85
Content-Type:application/json
Date:Mon, 27 Feb 2012 14:37:02 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=15, max=100
Pragma:no-cache
Server:Apache/2.2.14 (Ubuntu)
X-Powered-By:PHP/5.3.2-1ubuntu4.14
Original comment by ja...@twpagency.com
on 27 Feb 2012 at 2:45
I have seen similar behavior. It appeared that the content type selection was
being ignored. I had set it to application/json a but the header was still
application/x-www-form-urlencoded.
As an aside, can you add the ability to turn off the content type altogether? I
entered a blank one, but that seems to be overridden with
application/x-www-form-urlencoded as well.
Original comment by kyan.sk...@smartsheet.com
on 28 Mar 2012 at 5:25
I think I just figured out what my issue was, and may apply above as well. I
had left an empty row on my post parameters. Once I removed the empty row and
entered my JSON body, the content type drop down worked as expected. Thanks!
Original comment by kyan.sk...@smartsheet.com
on 28 Mar 2012 at 11:53
I have fixed that last night and you should receive update from Web Store.
Original comment by jarro...@gmail.com
on 29 Mar 2012 at 8:26
Original issue reported on code.google.com by
ja...@twpagency.com
on 30 Jan 2012 at 11:58