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

[Question]: egctl apply error #1161

Closed
cyrnicolase opened this issue Dec 6, 2023 · 2 comments
Closed

[Question]: egctl apply error #1161

cyrnicolase opened this issue Dec 6, 2023 · 2 comments
Labels
question Further information is requested

Comments

@cyrnicolase
Copy link
Contributor

cyrnicolase commented Dec 6, 2023

When I use egctl apply -f http-server.yml to create a http server, I got an error .

Error: create HTTPServer http_server_proxy failed, Post "https://localhost:2381/apis/v2/objects": http: server gave HTTP response to HTTPS client

How do I get rid of the tls ?

@cyrnicolase cyrnicolase added the question Further information is requested label Dec 6, 2023
@suchen-sci
Copy link
Contributor

➜  easegress git:(main) ✗ curl -X POST --data-binary "@yamls/httpserver.yaml" https://localhost:2381/apis/v2/objects -v  

replace yamls/httpserver.yaml to your yaml.

This is a really rare bug of egctl when create some special HTTPServer yaml that contains certain type of error. We will try to fix it tomorrow. For now, you can use the curl command above to create it, the response will contains the information. This bug will not influence the easegress-server.

Sorry for any inconvenience.

@cyrnicolase
Copy link
Contributor Author

Thank you. It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants