-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 when running script cmd line ":22:in `<main>': uninitialized constant API (NameError)" #1987
Comments
Which script are you trying to run? |
thanks for the reply @sprak3000 . the script I am try to run is |
Unfortunately, I do not own one of these devices to be able to fully test the plugin against. I'm not seeing that error when I start up the script and give it an arbitrary IP address. There is a year old issue in the author's repo around updating the plugin to use a V4 API. Perhaps your device is using that and is incompatible with the plugin? You might have better luck filing an issue on the author's repo around this, but we can see if @Iamrodos might weigh in on this thread also. Sorry, but I don't know that we can be of much help beyond that. |
Hi. The script should work as it’s accessing the local device and not the cloud. It was the cloud that changed API. I should close that issue. However that does not resolve your error. Do you have any other error messages? What do you get if you run the script from the command line directly? |
hi @Iamrodos
|
One of the requests is responding that it has moved. What version of Envoy firmware do you have? If you take out the line starting with begin and the lines from residue to the end, what error message do you get? That might indicate which call is returning something different. I am not near my system so I can't run and test at the moment. |
Here is the s/w version details; |
@Iamrodos Latest version of Enphase Envoy requires access token to use API. I am wondering whether that has something to do with the issue |
I am getting the following error when trying to run the script
': uninitialized constant API (NameError)" ... any ideas?":22:in `
The text was updated successfully, but these errors were encountered: