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

Missing CA file on latest beta #53

Closed
afu-dev opened this issue Feb 8, 2023 · 1 comment · Fixed by #56
Closed

Missing CA file on latest beta #53

afu-dev opened this issue Feb 8, 2023 · 1 comment · Fixed by #56
Assignees
Labels
bug Something isn't working

Comments

@afu-dev
Copy link
Contributor

afu-dev commented Feb 8, 2023

Description:

As discussed on Slack, the latest build (beta11) is missing the certificate file to handle SSL connections.

Stack trace from the Vimeo SDK:

{
    "errorType": "Vimeo\\Exceptions\\VimeoRequestException",
    "errorMessage": "Unable to complete request. [error setting certificate verify locations:  CAfile: /opt/ssl/cert.pem CApath: none]",
    "stackTrace": [
        "#0 /var/task/vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php(154): Vimeo\\Vimeo->_request('https://api.vim...', Array)",
        "#1 redacted",
        "#2 redacted",
        "#3 redacted",
        "#4 /var/task/vendor/bref/bref/src/Runtime/Invoker.php(24): redacted->handle(Array, Object(Bref\\Context\\Context))",
        "#5 /var/task/vendor/bref/bref/src/Runtime/LambdaRuntime.php(87): Bref\\Runtime\\Invoker->invoke(Object(redacted), Array, Object(Bref\\Context\\Context))",
        "#6 /var/task/vendor/bref/bref/src/FunctionRuntime/Main.php(32): Bref\\Runtime\\LambdaRuntime->processNextEvent(Object(redacted))",
        "#7 /opt/bref/bootstrap.php(17): Bref\\FunctionRuntime\\Main::run()",
        "#8 {main}"
    ]
}

How to reproduce:

  • Create a new function
  • Make a cURL request to an HTTPS endpoint
@afu-dev afu-dev added the bug Something isn't working label Feb 8, 2023
mnapoli added a commit that referenced this issue Feb 14, 2023
@mnapoli mnapoli self-assigned this Feb 14, 2023
@mnapoli
Copy link
Member

mnapoli commented Feb 14, 2023

Thanks, I added some tests to cover this in #56 and I'm working on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants