Skip to content
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

apc-smartconnect broken? #6

Open
vmpr opened this issue Jun 4, 2024 · 2 comments
Open

apc-smartconnect broken? #6

vmpr opened this issue Jun 4, 2024 · 2 comments

Comments

@vmpr
Copy link

vmpr commented Jun 4, 2024

Hi @datagutten ,

thanks for your great work! we are using your script with our Icinga to monitor one of our smart apcs.
It worked until the 29th of April 2024 but not the script doesn't give back any response anymore and times out.

Is it the same for you? Did schneider change something in their API?

thanks and have a great day!
cheers Ringo

here are some connect tests from our server and I think that's the problem:

curl https://secureidentity.schneider-electric.com/identity/UserLogin

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">





<script>
function redirectOnLoad() {
if (this.SfdcApp && this.SfdcApp.projectOneNavigator) { SfdcApp.projectOneNavigator.handleRedirect('/identity/idmserrorfound'); }  else
if (window.location.replace){
window.location.replace('/identity/idmserrorfound');
} else {
window.location.href ='/identity/idmserrorfound';
}
}
redirectOnLoad();
</script>

</head>


</html>

curl https://smartconnect.apc.com/auth/login

curl https://smartconnect.apc.com/api/v1/
{"code":"CECE-1006","error":"The requested route is not recognised"}
@ACasey1
Copy link

ACasey1 commented Jun 28, 2024

Yea mine stopped working 8th of May. Haven't started troubleshooting yet.

@datagutten
Copy link
Owner

datagutten commented Sep 7, 2024

It seems to be related with some Python or requests version, on Python 3.9 it hangs on one the first authentication requests, but with Python 3.11 it seems to be working.

Edit:
It is only working when I run it through Fiddler debugging proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants