PartKeepr icon indicating copy to clipboard operation
PartKeepr copied to clipboard

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

Open m4v opened this issue 3 years ago • 4 comments

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

m4v avatar Jul 25 '21 23:07 m4v

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...

c0ldpower avatar Jul 29 '21 21:07 c0ldpower

Also having the same issue

PTDreamer avatar Aug 04 '21 17:08 PTDreamer

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.

c0ldpower avatar Aug 05 '21 21:08 c0ldpower

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

rejuce avatar Jun 20 '22 15:06 rejuce