-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Show errors from Octopart search #1206
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1206 +/- ##
=========================================
Coverage 36.87% 36.87%
Complexity 1803 1803
=========================================
Files 258 258
Lines 5763 5763
=========================================
Hits 2125 2125
Misses 3638 3638
Continue to review full report at Codecov.
|
I tried this patch hoping that it would help with #1222 but now I get an "PartKeepr cannot access the Octopart API" error message. |
Make sure you are actually using the patch (remove all caches and redeploy all javascript). I just rebuilt PartKeepr and it is working with a Pro Free account. |
Thank you! This worked for me. I made the code changes manually and they took effect immediately without having to rerun setup. |
@sibbi77 How do I do this? I set up a fresh dockerized setup as described in the docs. Like @m4v I initially got the "You are not authorized to access 'cad'" error from #1222. Once I implement your patch I get a "PartKeepr cannot access the Octopart API" error message upon opening the Octopart search. Rerunning PartKeepr setup, restarting or recreating the docker containers don't fix the issue. I do see API calls on my Octopart Pro Free account get used up, so there does seem to be a successful connection. |
Perfect. Modified in the indicated directions, everything works correctly. Octopart working 100%. |
I observed exactly the same behavior: the query works and Octopart is replying properly but PHP is throwing an error/warning: I solved this by modifying PHP configuration: /usr/local/etc/php/php.ini I did not dig more to determine what the PHP error/warning is but masking the error reporting allows retrieving Octopart reply and importing the data into PartKeepr. Maybe it would be good to change the docker image to disable PHP error display? |
Currently errors are only shown if no results are returned, but Octopart returns results (empty ones).
This "fixes" #1178 and #1203, because now the error message mentions the user should upgrade to the PRO account (which is free).
Even the PRO account cannot retrieve cad data. Disabled.