You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What did you expect to see?
A more concise OCSP error or results from the Snowflake service.
https://github.com/snowflakedb/snowflake-connector-python/blob/main/src/snowflake/connector/ocsp_snowflake.py#L1147
This line fails when the type passed is of type Exception as Exception has no property errno. This is causing issues in our stack due to some OCSP error in our infrastructure we can't diagnose due to the error routine being incorrect in the connector
### Can you set logging to DEBUG and collect the logs?
```bash
import logging
import os
for logger_name in ('snowflake.connector',):
logger = logging.getLogger(logger_name)
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
ch.setFormatter(logging.Formatter('%(asctime)s - %(threadName)s %(filename)s:%(lineno)d - %(funcName)s() - %(levelname)s - %(message)s'))
logger.addHandler(ch)
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
OCSP check fails when execption is not of type RevocationCheckError
SNOW-1774037: OCSP check fails when execption is not of type RevocationCheckError
Oct 30, 2024
hi - thanks for raising this issue with us. taking a look. do you think it would be possible to post a full(er) stack of the error thrown? we supposed to raise a RevocationCheckError when the OCSP server is not reachable, so really curious what else is going on here.
edit: re: to diagnose why you're having OCSP errors, this could be helpful:
run SYSTEM$ALLOWLIST() (or ALLOWLIST_PRIVATELINK() if you're using PL) in your snowflake account, and take note of every OCSP-related endpoint. Note that they indeed do operate on port 80, and they should.
work with the infra/cloud people to allow connectivity to these endpoints over port 80.
Nothing user-related or sensitive is going over the wire unencrypted, only information which is already public (certificates and their validity/not validity)
Hi @sfc-gh-dszmolka , thank you for the follow up. Yes, we are currently in the process of diagnosing the OCSP issue within our environment, suspect its a timeout due to some missing whitelisting. Errors started appearing with no code changes on our side so assuming something in either our SF tenant or GCP infra has changed. Will report back findings.
Regardless, I suspect the error routine there is incorrect, which is making pin pointing this issue harder.
Python version
3.10.3
Operating system and processor architecture
macOS-14.7-arm64-arm-64bit
Installed packages
What did you do?
The text was updated successfully, but these errors were encountered: