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

SFHolidayCalendar - Template not working #158

Open
ragheb opened this issue May 25, 2023 · 4 comments
Open

SFHolidayCalendar - Template not working #158

ragheb opened this issue May 25, 2023 · 4 comments

Comments

@ragheb
Copy link

ragheb commented May 25, 2023

Hello,

The installation of cloudformation sfhc.yaml does not work anymore. the error message during installation :
CloudFormation did not receive a response from your Custom Resource. Please check your logs for requestId [5b7656b9-3464-466e-946f-f54ac5e0b90d]. If you are using the Python cfn-response module, you may need to update your Lambda function code so that CloudFormation can attach the updated version.

when I debug the lambda SFCalendarAssociation, I get the error message below.
{
"errorMessage": "Unable to import module 'associate_lambda': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/tmp/urllib3/util/ssl_.py)",
"errorType": "Runtime.ImportModuleError",
"requestId": "2154c3f4-03ce-4345-9ff0-154e4ae938db",
"stackTrace": []
}

Sincerely,
Ragheb GMIRA

@ragheb ragheb changed the title SFHolidayCalendar - Lambda SFCalendarAssociation SFHolidayCalendar - Template not working May 25, 2023
@WalidANS
Copy link

Hello,

I have the same issue.
The name of the lambda is the following : SFCalendarAssociation

Here are the error that I have :

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts

[ERROR] Runtime.ImportModuleError: Unable to import module 'associate_lambda': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/tmp/urllib3/util/ssl_.py)
Traceback (most recent call last)

Kind regards,
Walid

@inesakt
Copy link

inesakt commented May 25, 2023

Hello,

I'm experiencing the same issue with the installation of cloudformation sfhc.yaml.

@ragheb
Copy link
Author

ragheb commented May 25, 2023

Hello @dougjaso

Kindly note that I found a similar issue on Github that was resolved by downgrading the urllib3 dependency version.

References:
[1] - https://github.com/psf/requests/blob/main/HISTORY.md#2300-2023-05-03
[2] - psf/requests#6443

@dougjaso
Copy link
Contributor

For those implementing this against Service Cloud Voice, there is a new version in the works that re-uses the rest api integration from Salesforce, and is a bit cleaner. I have not updated this deployment package yet, but instructions on how to deploy the new version manually can be found here. I will be replacing this version with the content from that workshop as a CloudFormation template next week.

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

4 participants