net::ERR_HTTP2_PROTOCOL_ERROR #2897

1. Which version of Caddy are you using (caddy -version)?

1.0.4 custom

2. What are you trying to do?

view my sites

3. What is your Caddyfile?

domain1, domain2,  domain2,  domain2 {
    proxy / 172.17.17.49:10080 {
        transparent
    }
    tls i@shuncheng.lu
    log requests.log {
        rotate_size 50
        rotate_age 90
        rotate_keep 20
    }
    errors /workspace/proginn2/log/caddy-error.log
    timeouts 30m
}

4. How did you run Caddy (give the full command and describe the execution environment)?

supervisor

[program:proginn]
directory=/workspace/projects/proginn-gogs-proxy/
command=caddy -agree
#user=root
autorestart=yes
startsecs=5
startretries=400
redirect_stderr=true
environment=DNSPOD_API_KEY="xxx,xxxx"

5. Please paste any relevant HTTP request(s) here.

6. What did you expect to see?

200 ok

7. What did you see instead (give full error messages and/or log)?

image

8. Why is this a bug, and how do you think this should be fixed?

9. What are you doing to work around the problem in the meantime?

10. Please link to any related issues, pull requests, and/or discussion.

Bonus: What do you use Caddy for? Why did you choose Caddy?

auto ssl, replace nginx

the github issue link : net::ERR_HTTP2_PROTOCOL_ERROR · Issue #2897 · caddyserver/caddy · GitHub

Thanks for you help!

Hi @lscgzwd, welcome to the Caddy community.

I wasn’t able to replicate those protocol errors with curl.

~ 
➜ curl -IL https://www.gitinn.com/
HTTP/2 302 
content-type: text/plain; charset=utf-8
date: Wed, 27 Nov 2019 08:14:32 GMT
location: /explore
server: Caddy
set-cookie: lang=en-US; Path=/; Max-Age=2147483647
set-cookie: i_like_gogits=cae68d4aaa6d7978; Path=/; HttpOnly
set-cookie: _csrf=-O5vZBi9SFM1JbW_VDuzpLmZ0uo6MTU3NDg0MjQ3MjI1MDEwMTMxOQ%3D%3D; Path=/; Expires=Thu, 28 Nov 2019 08:14:32 GMT; HttpOnly

HTTP/2 302 
content-type: text/plain; charset=utf-8
date: Wed, 27 Nov 2019 08:14:32 GMT
location: /explore/repos
server: Caddy
set-cookie: lang=en-US; Path=/; Max-Age=2147483647
set-cookie: i_like_gogits=c9543aa011e091b4; Path=/; HttpOnly
set-cookie: _csrf=EgmWSxUAH8Iify14izSiy3HLhT46MTU3NDg0MjQ3MjU0Nzg5NDI1Nw%3D%3D; Path=/; Expires=Thu, 28 Nov 2019 08:14:32 GMT; HttpOnly

HTTP/2 200 
content-type: text/html; charset=UTF-8
date: Wed, 27 Nov 2019 08:14:32 GMT
server: Caddy
set-cookie: lang=en-US; Path=/; Max-Age=2147483647
set-cookie: i_like_gogits=08c99dda26d45802; Path=/; HttpOnly
set-cookie: _csrf=ba0KfjZQ7bcYedmkY3_7ACZg3XQ6MTU3NDg0MjQ3Mjg1MDA4NzY3OQ%3D%3D; Path=/; Expires=Thu, 28 Nov 2019 08:14:32 GMT; HttpOnly

Looks like Caddy is serving this site just fine. What browser are you getting those errors with, and have you tried any other browsers?

Thanks for your reply .
Browser: Chrome 78
This error not appear always, sometimes just refresh it will be ok.

Safari works fine

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.