-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 404 while using OnShape API #46
Comments
Hello, I believe this issue happens because your assembly is referencing parts and you don't have edition access to it In this case, the following URL is invoked: Which triggers an access denied. I am not sure why there are privileges required since this should be a read-only API request, I will open an issue in OnShape tickets system itself to investigate. In the meantime, a solution for you would be to make a copy of this document and use it instead. |
I opened issue on OnShape bug tracking system and I will give updates here It is weird that this works: And this doesn't: Since they are both GET requests doing only read operations |
Hello, The problem was that onshape internal partids can contain slash (here |
Thank you very much! the fix solved the problem! :D |
I am now seeing a similar issue with v 0.3.13:
Could this bug be lingering somewhere still? |
Hello, |
Unfortunately, I can't share my project, but I wanted to mention I also had a 404 error show up - when clicking through the URL generated by the error message, the partid portion of the url was malformed via the text implemented in this hotfix. i.e. "/" replaced by "%252f". To test, I manually replacing the malformed text in the partid with "/", and the link went through just fine. My workaround for the time being was to run from source on the commit just prior to the change. |
ive experienced the same problem |
As @noelhwang informed, |
Hello, indeed slash might be wrongly escaped |
@MrKeith99 I can see your design but I can't import it because I am not allowed to copy it for instance I will try to create a document with a lot of parts to see if I can get one generated with a slash to add it to the tests/examples |
I could reproduce by adding 64 parts to a document and running the import to have a lot of partids I re-packaged |
I have been able to pass the path problem but unfortunately it seems to stop in the "wheel" assembly, so the other parts are not retrieved |
btw, this is the correct link to the project |
You can specify which assembly you want to export using |
Hello, I also encountered with same problem saying My cad link is : And the version of onshape-to-robot 0.3.17. I had not have a problem last week but now I got it. |
Looks like API for metadata changed. |
Hi, thank you for your response @Gregwar .
|
Hello all, we experienced a similar problem, our URL ist the following: Here, the partID is "R+FD", which make it neccessary to escape the "+" in our URL. What I did to solve this: we extended the escape_slash(s) in client.py by changing What more characters can appear? Maybe its better to make this more generic? Hope this helps... |
Hello
I am trying to create a urdf file from an onshape model of a robot manipulator arm, and I am getting the following error:
Checking OpenSCAD presence...
Checking MeshLab presence...
Retrieving workspace ID ...
Retrieving assembly "Bravo_7" with id e7806a8b6e8ca46848b0ad73
Getting assembly features, scanning for DOFs...
WARNING: joint dof_j2 of type revolute has no limits
Found total 6 DOFs
Building robot tree
Trunk is Base <1>
Adding top-level instance [Base <1>]
! ERROR (404) while using OnShape API
! <!doctype html>
I tried to isolate the error and I believe it has something to do with Link2 of my model, but I am not sure what can the error with this part of the robot be. Can somebody explain me what does the html part of the error means? because a lot of the text does not make any sense.
Here is the link to my onshape document:
https://cad.onshape.com/documents/6fdce4c712a1f625a0e4df69/w/dfe513c099f86b8f8b4b33c1/e/5bd485de8a70d7474f8490c3
This is the isolated link of the arm that I believe is causing the problem:
https://cad.onshape.com/documents/c7f4343ab134d605156724b1/w/35a6d286ff1923733e540600/e/17437e1268bcb23d70d88912
Thank you in advance
The text was updated successfully, but these errors were encountered: