partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 401 forks source link

Octopart error: you're not authorized to access 'cad' #1222

Open m4v opened 3 years ago

m4v commented 3 years ago

Bug description

I'm trying the docker development version of PartKeepr and I follow the instructions in docker/Readme.md for setting it up.

So far so good, PartKeepr seems to work, however when I try to use the octopart function I always get a "no authorized to cad" error even when the checkbox "CAD model" is disabled. I also tried it disabling it from the user settings. This is with an Pro Free API key.

Captura de pantalla de 2021-07-25 20-34-08

c0ldpower commented 3 years ago

I see sibbi77 mentioned in #1206 it works for him, but on my install nothing has changed and now I'm getting same error. Was working just fine couple of weeks ago...

PTDreamer commented 3 years ago

Also having the same issue

c0ldpower commented 3 years ago

UPDATE:

I should have tried this earlier, but #1206 actually works solving this issue, apparently the OP has another setup problem as well. Replacing the php file in src/PartKeepr/OctoPartBundle/Services/OctoPartService.php was enough to solve the problem, even without re-running the setup, takes effect immediately.

What I noticed is, that so far my API requests have not been counted on Octopart, probably in a result of a bug which they fixed, causing the not authorized to access 'cad' error. Now after disabling cad with the updated php file, the API count started deducting requests from the monthly limit - looks like we may have enjoyed unlimited requests for a while :)

Hope this solves it for the rest of you having this issue.

rejuce commented 2 years ago

it really should be merged into master...same problem blocked us from using octopart even we purchased an api key...