-
Notifications
You must be signed in to change notification settings - Fork 96
404 on all requests? #53
Comments
Hey @dmitrym0, sorry for the delayed response, but are you still experiencing this issue? |
@dmitrym0 This seems like it's more likely a problem on the Harvest side or an issue with your connection. Closing for now. If this issue is persisting for you, you can re-open with some more info (trace route to the domain etc.). |
It's still happening, @prsimp. Do you think it's something related to the way my particular harvest subdomain is setup? |
@dmitrym0 what subdomain are you using for the actual request that is 404ing? Can you paste the output of a trace route to |
Looks like you're right. I'm having trouble tracerouting to this domain, but it works fine in the browser. Must be a proxy config issue or something. |
Paul, sorry to bother you again:
Script 1:Wrong password. require 'harvested'
harvest = Harvest.client('REDACTED.harvestapp.com', 'username', 'wrongpassword')
harvest.projects.all # list out projects Execution:
Script 2:Correct password: require 'harvested'
harvest = Harvest.client('REDACTEDi.harvestapp.com', 'username', 'rightpassword')
harvest.projects.all # list out projects Execution:
|
@dmitrym0 Have you tried a simple curl-based who_am_i yet? http://www.getharvest.com/api/authentication-http-basic |
I had this issue and resolved it by having my Harvest user account promoted to an administrator. |
I am having this same issue. However I do not have the option to promote myself to an administrator. Is there an alternative? Why must I be an administrator? |
Certain API actions require administrative actions (either as a Project Manager or an Admin). Viewing Invoices is one of those. As a regular user, you should be able to track time. Not sure if there is anything else available offhand. Perhaps a few reporting utilities. |
All I'm trying to do is:
and I get the 404 error. I have made sure the credentials are valid by Also doing |
Viewing projects requires Project Manager or Admin privileges. You get the same thing by logging in as the user in the web interface. This is not Harvested behavior or an issue of the bindings. It is playing by the rules of the Harvest API. |
Ya you're right. I thought that since when adding time entries I could add to a certain project, that I could view projects as well. It did work for |
So when creating a time entry, it requires me to pass in a project id:
However, since I don't have access to view projects, how will I be able to determine project id? The web interface has a drop down when creating a time entry that allows me to select a project by name. Is there something similar I can do here, i.e getting all project names that I have access to and their ids? |
@zmoazeni any ideas? |
@mobitar I don't off hand. You may have to scrape the ID from a URL or markup as the user. That's a crappy solution, but I don't have any ideas how you could do that from the API. |
@mobitar I am in the same situation as you, was curious if you made any progress or found it to be a dead end without admin access. |
Which part are you referring to? |
Grabbing a project id without admin access. |
Thank you! This looks great. |
Hello gentlemen, it appears that every data call that I make results in a 404 error. Authentication appears to be successful though. Any advice?
The text was updated successfully, but these errors were encountered: