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

Unable to retrieve your robots #257

Open
sihot opened this issue Oct 7, 2024 · 9 comments
Open

Unable to retrieve your robots #257

sihot opened this issue Oct 7, 2024 · 9 comments

Comments

@sihot
Copy link

sihot commented Oct 7, 2024

Unable to retrieve your robots: Cannot connect to host v2.api.whisker.iothings.site:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]
Robots:

anything change ?

@natekspencer
Copy link
Owner

@sihot are you still seeing issues? I'm not aware of a change to the endpoints.

@Difoool
Copy link

Difoool commented Oct 20, 2024

I see the same issue. This is the full message I get back:
Unable to retrieve your robots: Cannot connect to host graphql.whisker.iothings.site:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')]

@JasonDeaneHouser
Copy link

I am getting the same error on my end as well.

@JayHTang
Copy link

Got the same error on my Windows Server 2016 machine starting from Dec 4. Looks like they come from the POST requests for LR4 and feeder robot. Interestingly it works just fine on my Windows 11 machine. They use the all the same packages so I wonder what difference can cause this SSL issue.

@JayHTang
Copy link

The workaround is to use self._websession = ClientSession(connector=TCPConnector(verify_ssl=False)) for Session to disable SSL.

@Difoool
Copy link

Difoool commented Jan 12, 2025

Where exactly would I need to add this to the source code?

@JayHTang
Copy link

Where exactly would I need to add this to the source code?

Here in session.py, instead of self._websession = ClientSession(), use self._websession = ClientSession(connector=TCPConnector(verify_ssl=False))

@Difoool
Copy link

Difoool commented Jan 31, 2025

Finally got around trying this but get this error: NameError: name 'TCPConnector' is not defined

@natekspencer
Copy link
Owner

Make sure you've imported TCPConnector from aiohttp. Also, if you're using this library directly, you shouldn't need to modify session.py. Instead, pass in a ClientSession when creating the Account:

from aiohttp import ClientSession, TCPConnector

from pylitterbot import Account

account = Account(
    websession=ClientSession(connector=TCPConnector(verify_ssl=False)),
)

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

5 participants