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

Postman reports API ssl certificate expired #28239

Closed
dcolley opened this issue Nov 3, 2021 · 2 comments
Closed

Postman reports API ssl certificate expired #28239

dcolley opened this issue Nov 3, 2021 · 2 comments

Comments

@dcolley
Copy link

dcolley commented Nov 3, 2021

Description of the issue

I'm testing the REST API with Postman

Context information (for bug reports)

Simple test to https://my_domain.frappe.cloud/api/method/frappe.auth.get_logged_user with apiKey and apiSecret

Output of bench version

(paste here)

Steps to reproduce the issue

  1. Open postman
  2. Enter the url
  3. Enter your credentials at Authorization header as per the documentation

Observed result

Postman report ssl expired error
image

Expected result

The API should respond without SSL error

Stacktrace / full error message

GET https://*****.frappe.cloud/api/method/frappe.auth.get_logged_user
Error: certificate has expired
Network
agent: "Desktop Agent"
Request Headers
Authorization: token b452280a8d6cd58:402d8d37176a6b6
User-Agent: PostmanRuntime/7.28.3
Accept: */*
Cache-Control: no-cache
Postman-Token: 7bed0727-2338-45f7-901d-b6be3750c322
Host: tun-dev.frappe.cloud
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Additional information

When I override the SSL check on Postman I get the expected result from the API
image
... you can turn this off, then the api call works.

However, we can't turn this off in production

@dcolley dcolley added the bug label Nov 3, 2021
@ankush
Copy link
Member

ankush commented Nov 3, 2021

Screenshot 2021-11-03 at 9 41 59 PM

Works fine. Maybe some issue with your site, do you see a certificate error in the browser? is your system time correct?

If it still persist get in touch with Frappe Cloud's support: https://frappecloud.com/support

Closing, as this isn't related to ERPNext or Frappe.

@ankush ankush closed this as completed Nov 3, 2021
@ankush ankush removed the bug label Nov 3, 2021
@dcolley
Copy link
Author

dcolley commented Nov 3, 2021

Thanks @ankush

I found it's a known Postman issue with Letsencrypt certificates
postmanlabs/postman-app-support#10338

I managed to get around the problem by switching from Desktop to Cloud Agent
image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants