Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Problem with initialization and AUTH #4

merged 3 commits into from Apr 24, 2012


None yet
2 participants

ondrejbartas commented Apr 4, 2012

Hello I got problem:

<- "GET /api/v6/sessions.json?output=json HTTP/1.1\r\nContent-Type: application/json\r\nAuthorization: Basic XXXXXXXXXXXXXXXu\r\nConnection: close\r\nHost: www.toggl.com\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Wed, 04 Apr 2012 20:19:42 GMT\r\n"
-> "Server: Apache/2.2.14 (Ubuntu)\r\n"
-> "X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.8\r\n"
-> "X-Rack-Cache: miss\r\n"
-> "X-Runtime: 0.022720\r\n"
-> "Cache-Control: private\r\n"
-> "Content-Length: 1163\r\n"
-> "Status: 404\r\n"
-> "Cache-Control: max-age=0, public\r\n"
-> "Expires: Wed, 04 Apr 2012 20:19:42 GMT\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "Content-Type: text/html; charset=utf-8\r\n"
-> "\r\n"
reading 1163 bytes...
-> ""
-> "<!doctype html>\r\n\r\n\r\n <meta charset="utf-8">\r\n <title>Page Not Found :(</title> \r\n <style>\r\n\t body { text-align: center;}\r\n\t h1 { font-size: 50px; text-align: center }\r\n\t span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }\r\n\t body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }\r\n\t ::-moz-selection{ background:#FF5E99; color:#fff; }\r\n\t ::selection { background:#FF5E99; color:#fff; } \r\n\t article {display:block; text-align: left; width: 500px; margin: 0 auto; }\r\n\t \r\n\t a { color: rgb(36, 109, 56); text-decoration:none; }\r\n\t a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }\r\n </style>\r\n\r\n\r\n


Not found :(


Sorry, but the page you were trying to view does not exist.


It looks like this was the result of either:

  • a mistyped address
  • \r\n\t\t
  • an out-of-date link
  • \r\n\t
\r\n \r\n\r\n\r\n"
read 1163 bytes



ondrejbartas commented Apr 4, 2012

And I always get this error.

I think problem is that toggle doesn't know sessions.json for GET request.

But if it is not needed you can skip auth method in initialization and do basic auth for all resquest.

@atog atog added a commit that referenced this pull request Apr 24, 2012

@atog atog Merge pull request #4 from ondrejbartas/master
Problem with initialization and AUTH

@atog atog merged commit 065f196 into atog:master Apr 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment