FileUpload method gets 404 error.I have attached tested request. am i missing anything?Could u please give me suggestions.
AnsweredPlease ignore previous mail thread
tested url : https://podio.com?apiUrl=https://api.podio.com&user=vazz2009@gmail.com
Content-Type: multipart/form-data
tested link in postman :
https://www.getpostman.com/collections/f7fe2d76496c4c5eee93
-
API requests should go to api.podio.com - file uploads should be a POST request to api.podio.com/file/ as you can see at https://developers.podio.com/doc/files/upload-file-1004361
-
Hi I have tried as u mentioned and followed the documentation also.
tested Url: https://api.podio.com/file?apiUrl=https://api.podio.com
Content-Type: multipart/form-dataI got the 500 error as following in postman
{"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/file","query_string":"apiUrl=https:\/\/api.podio.com","method":"POST"},"error_description":"An unexpected error occured during execution","error":"unexpected"}
But I gave the request as directly its working fine.
Find [1] working url
[1]https://podio.com/file?apiUrl=https://podio.comfind [2] postman link
[2]https://www.getpostman.com/collections/e06bae833c7fa512bf51response 200 ok
-
Hi,
I am testing the developed connector podio with wso2 ESB. File Upload method got 302 Moved Temporarily error.
Could you please give any suggestions for this matter?
I have implemented with direct api endpoint "https://podio.com"
Error log
[2015-04-02 11:03:50,410] INFO - SynapseImportFactory Successfully created Synapse Import: podio
[2015-04-02 11:03:54,838] DEBUG - wire >> "POST /services/podio_uploadFile?apiUrl=https://podio.com HTTP/1.1[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Host: vanii-thinkpad-t530:8280[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Content-Length: 189[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Authorization: Bearer fad6914e911e4ba0a2155258b377c204[\r][\n]"
[2015-04-02 11:03:54,839] DEBUG - wire >> "Content-Type: multipart/form-data[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "Accept: /[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "Accept-Encoding: gzip, deflate[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "Accept-Language: en-US,en;q=0.8[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "------WebKitFormBoundaryk49g71rJgQZbtkIk[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "Content-Disposition: form-data; name="file"; filename="test.txt"[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "Content-Type: text/plain[\r][\n]"
[2015-04-02 11:03:54,840] DEBUG - wire >> "[\r][\n]"
[2015-04-02 11:03:54,841] DEBUG - wire >> "chamath[\r][\n]"
[2015-04-02 11:03:54,841] DEBUG - wire >> "------WebKitFormBoundaryk49g71rJgQZbtkIk--[\r][\n]"
[2015-04-02 11:03:54,889] INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2015-04-02 11:03:56,033] DEBUG - wire << "POST https://podio.com/file HTTP/1.0[\r][\n]"
[2015-04-02 11:03:56,034] DEBUG - wire << "Accept-Language: en-US,en;q=0.8[\r][\n]"
[2015-04-02 11:03:56,035] DEBUG - wire << "Authorization: Bearer fad6914e911e4ba0a2155258b377c204[\r][\n]"
[2015-04-02 11:03:56,035] DEBUG - wire << "Accept-Encoding: gzip, deflate[\r][\n]"
[2015-04-02 11:03:56,035] DEBUG - wire << "Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2015-04-02 11:03:56,035] DEBUG - wire << "Content-Type: multipart/form-data[\r][\n]"
[2015-04-02 11:03:56,035] DEBUG - wire << "Accept: /[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "Content-Length: 189[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "Host: podio.com:80[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2015-04-02 11:03:56,036] DEBUG - wire << "[\r][\n]"
[2015-04-02 11:03:56,037] DEBUG - wire << "------WebKitFormBoundaryk49g71rJgQZbtkIk[\r][\n]"
[2015-04-02 11:03:56,038] DEBUG - wire << "Content-Disposition: form-data; name="file"; filename="test.txt"[\r][\n]"
[2015-04-02 11:03:56,038] DEBUG - wire << "Content-Type: text/plain[\r][\n]"
[2015-04-02 11:03:56,038] DEBUG - wire << "[\r][\n]"
[2015-04-02 11:03:56,038] DEBUG - wire << "chamath[\r][\n]"
[2015-04-02 11:03:56,038] DEBUG - wire << "------WebKitFormBoundaryk49g71rJgQZbtkIk--[\r][\n]"
[2015-04-02 11:03:56,359] DEBUG - wire >> "HTTP/1.1 302 Found[\r][\n]"
[2015-04-02 11:03:56,359] DEBUG - wire >> "Server: nginx[\r][\n]"
[2015-04-02 11:03:56,359] DEBUG - wire >> "Date: Thu, 02 Apr 2015 05:33:56 GMT[\r][\n]"
[2015-04-02 11:03:56,360] DEBUG - wire >> "Content-Type: text/html; charset=utf-8[\r][\n]"
[2015-04-02 11:03:56,360] DEBUG - wire >> "Connection: close[\r][\n]"
[2015-04-02 11:03:56,360] DEBUG - wire >> "Status: 302 Found[\r][\n]"
[2015-04-02 11:03:56,360] DEBUG - wire >> "Strict-Transport-Security: max-age=31536000[\r][\n]"
[2015-04-02 11:03:56,360] DEBUG - wire >> "Location: https://podio.com:80/login?return_to=https%3A%2F%2Fpodio.com%3A80%2Ffile[\r][\n]"
[2015-04-02 11:03:56,361] DEBUG - wire >> "X-UA-Compatible: IE=Edge,chrome=1[\r][\n]"
[2015-04-02 11:03:56,361] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2015-04-02 11:03:56,361] DEBUG - wire >> "Set-Cookie: _podio_session=BAh7BzoRdXNlcl9jb250ZXh0ewY6DnJldHVybl90b0kiHmh0dHBzOi8vcG9kaW8uY29tOjgwL2ZpbGUGOgZFVEkiD3Nlc3Npb25faWQGOwdUSSIlYTM1OGNjNGNhYjA0MDQ4NTU1Yjg1YWJmYmQ5OGQ1MzAGOwdU--26d1db0316e679dda4c642a694879d1090d6986e; domain=.podio.com; path=/; secure; HttpOnly[\r][\n]"
[2015-04-02 11:03:56,361] DEBUG - wire >> "Set-Cookie: _podio_remember=; domain=.podio.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT; secure[\r][\n]"
[2015-04-02 11:03:56,362] DEBUG - wire >> "X-Runtime: 0.005922[\r][\n]"
[2015-04-02 11:03:56,362] DEBUG - wire >> "X-Served-By: web-i-735faf33[\r][\n]"
[2015-04-02 11:03:56,362] DEBUG - wire >> "[\r][\n]"
[2015-04-02 11:03:56,362] DEBUG - wire >> "<html><body>You are being <a href="https://podio.com:80/login?return_to=https%3A%2F%2Fpodio.com%3A80%2Ffile">redirected</a>.</body></html>"
[2015-04-02 11:03:56,398] DEBUG - wire << "HTTP/1.1 302 Moved Temporarily[\r][\n]"
[2015-04-02 11:03:56,398] DEBUG - wire << "X-Runtime: 0.005922[\r][\n]"
[2015-04-02 11:03:56,399] DEBUG - wire << "Status: 302 Found[\r][\n]"
[2015-04-02 11:03:56,399] DEBUG - wire << "Strict-Transport-Security: max-age=31536000[\r][\n]"
[2015-04-02 11:03:56,399] DEBUG - wire << "X-UA-Compatible: IE=Edge,chrome=1[\r][\n]"
[2015-04-02 11:03:56,399] DEBUG - wire << "Location: https://podio.com:80/login?return_to=https%3A%2F%2Fpodio.com%3A80%2Ffile[\r][\n]"
[2015-04-02 11:03:56,400] DEBUG - wire << "Set-Cookie: _podio_remember=; domain=.podio.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT; secure[\r][\n]"
[2015-04-02 11:03:56,400] DEBUG - wire << "Set-Cookie: _podio_session=BAh7BzoRdXNlcl9jb250ZXh0ewY6DnJldHVybl90b0kiHmh0dHBzOi8vcG9kaW8uY29tOjgwL2ZpbGUGOgZFVEkiD3Nlc3Npb25faWQGOwdUSSIlYTM1OGNjNGNhYjA0MDQ4NTU1Yjg1YWJmYmQ5OGQ1MzAGOwdU--26d1db0316e679dda4c642a694879d1090d6986e; domain=.podio.com; path=/; secure; HttpOnly[\r][\n]"
[2015-04-02 11:03:56,400] DEBUG - wire << "Content-Type: text/html; charset=utf-8[\r][\n]"
[2015-04-02 11:03:56,400] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
[2015-04-02 11:03:56,401] DEBUG - wire << "Date: Thu, 02 Apr 2015 05:33:56 GMT[\r][\n]"
[2015-04-02 11:03:56,401] DEBUG - wire << "Server: WSO2-PassThrough-HTTP[\r][\n]"
[2015-04-02 11:03:56,401] DEBUG - wire << "Transfer-Encoding: chunked[\r][\n]"
[2015-04-02 11:03:56,401] DEBUG - wire << "Connection: keep-alive[\r][\n]"
[2015-04-02 11:03:56,402] DEBUG - wire << "[\r][\n]"
[2015-04-02 11:03:56,404] DEBUG - wire << "12c[\r][\n]"
[2015-04-02 11:03:56,405] DEBUG - wire << "<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Body<html><body>You are being <a href="https://podio.com:80/login?return_to=https%3A%2F%2Fpodio.com%3A80%2Ffile">redirected</a>.</body></html>/soapenv:Body/soapenv:Envelope[\r][\n]"
Please sign in to leave a comment.
Comments
4 comments