toggl / toggl_api_docs

Documentation for the Toggl API
1.4k stars 235 forks source link

Error 501 Not Implemented #301

Closed doughtsh closed 6 years ago

doughtsh commented 6 years ago

Trying to connect with Jitterbit Studio. I'm setting the URL to https://toggl.com/reports/api/v2/details?workspace_id=[REDACTED]&since=2018-03-01&until=2018-03-07&user_agent=scott.doughty@i-nexus.com&page=1, with my API token as the Logon and "api_token" as the password. This works fine with curl, but when I try to connect from Jitterbit Studio I get the following error:

*****BEGIN ERROR**** Could not connect to url 'https://toggl.com/reports/api/v2/details?workspace_id=[REDACTED]&since=2018-03-01&until=2018-03-07&user_agent=scott.doughty@i-nexus.com&page=1' . The last (and probably most relevant) error was: The server returned HTTP Status Code : 501 Not Implemented

Error is: The server does not support the functionality required to fulfill the request. Headers sent by the server: HTTP/1.1 501 Not Implemented Server: nginx Date: Thu, 15 Mar 2018 14:31:34 GMT Content-Type: text/plain Access-Control-Allow-Methods: GET, OPTIONS Access-Control-Allow-Headers: Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, Authorization, Accept, Accept-Encoding, Accept-Language, Access-Control-Request-Headers, Access-Control-Request-Method, Connection, Host, Origin, User-Agent Access-Control-Allow-Credentials: true Instance: reports2 Instance: web4 Strict-Transport-Security: max-age=15552000; includeSubDomains X-Content-Type-Options: nosniff X-We-are-hiring: https://jobs.toggl.com/ X-Request-ID: b6cffac9d6036f235d2799328f8d25bd Via: 1.1 google Set-Cookie: GCLB=CPX8xtW4n6CLYQ; path=/; HttpOnly Transfer-Encoding: chunked Alt-Svc: clear

Client version: 5.6.5.15 Server version: 5.6.0.3 Client platform: Windows 10 - Java 1.8.0_161 Server platform: Linux 2.6.32-696.18.7.el6.x86_64 CPU: GenuineIntel Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz, 12 cores total. RAM: 59.21 GB in use, 3.655 GB available, 62.87 GB total. Swap: 2.362 GB in use, 1.638 GB available, 4 GB total. *****END ERROR****

I've attached a screenshot of my Jitterbit config settings in case anything leaps out at you. I've tried all the combinations of the three checkboxes in the Advanced HTTP Properties dialog to no avail. Any ideas?

capture
adriangvargas commented 6 years ago

Hi doughtsh! do you found the solution? I've the same problem

Thanks in advance.

doughtsh commented 6 years ago

No solution found (yet)

adriangvargas commented 6 years ago

ok, we keep in touch!

webervin commented 6 years ago

Sadly we can offer help only for curl examples here.

You might want to contact support@toggl.com providing freshly obtained 'X-Request-ID' header (from error response) and your public IP address (from where you make request), so that we would be able to lookup something from logs.