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

Getting this error - context deadline exceeded (Client.Timeout exceeded while awaiting headers) #682

Open
pasim opened this issue Apr 12, 2023 · 2 comments

Comments

@pasim
Copy link

pasim commented Apr 12, 2023

  • Command Format:

  • Execution Command:

  • Output:

I am running this command
liyun fc-open POST /2021-04-06/services/{Service}/functions/{Function}/invocations --header "Content-Type=application/json;X-Fc-Invocation-Type=Sync;X-Fc-Log-Type=Tail;" --body "{}"

And getting this error

ERROR: Post "http://fc.cn-hangzhou.aliyuncs.com/2021-04-06/services/{Service}/functions/{Function}/invocations": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Despite the fact that I can see invocations on the web portal.

@TsinghuaDream
Copy link
Contributor

This is a network problem, you can choose an endpoint that is reachable by the network.
https://next.api.alibabacloud.com/product/FC-Open#endpoint.

@PYGangGang
Copy link

I'm facing the same issue. I got context deadline exceeded (Client.Timeout exceeded while awaiting headers) while invoke a FC from aliyun cli, though the request actually succeeded.
How to change the endpoint in aliyun cli to the one you mentioned? I cannot find an entry.

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

3 participants