Skip to content

HTTP/3 Support Issues #327

Description

@dhia-gharsallaoui

HTTP/3 Support Issues

Problem Description

Attempting to run HyperBEAM with HTTP/3 support encounters multiple configuration and runtime errors that prevent the server from starting successfully.

Environment

  • Branch: edge
  • Build Profile: http3
  • Platform: Linux
  • Erlang/OTP: 27.3

Issues Encountered

1. Missing quicer.app Dependency

Error:

{badmatch,{error,{quicer,{"no such file or directory","quicer.app"}}}}

Temporary Fix:
Adding quicer to the relx configuration resolves this issue, but this approach is not practical as it would include the dependency for all profiles where it's not needed.

2. TLS Configuration Error

After resolving the quicer dependency issue, the following errors occur:

Initial Error:

{{badmatch,{error,config_error,tls_error}},
 [{cowboy,'-start_quic/3-fun-3-',5,
          [{file,"/home/ubuntu/HyperBEAM/_build/default/lib/cowboy/src/cowboy.erl"},
           {line,96}]}]}

Application Exit:

=INFO REPORT==== 16-Jun-2025::14:10:29.337931 ===
    application: hb
    exited: {bad_return,
                {{hb_app,start,[normal,[]]},
                 {'EXIT',
                     {{badmatch,
                          {error,
                              {timeout,staring_http3_server,
                                  <<"Ws-ct6H1E8fezVzTXV84cMsIDwoyaHkzDTLqHWgS_kw">>}}},
                      [{hb_http_server,new_server,1,
                           [{file,"/home/ubuntu/HyperBEAM/src/hb_http_server.erl"},
                            {line,198}]},
                       {hb_http_server,start,1,
                           [{file,"/home/ubuntu/HyperBEAM/src/hb_http_server.erl"},
                            {line,111}]},
                       {hb_app,start,2,
                           [{file,"/home/ubuntu/HyperBEAM/src/hb_app.erl"},
                            {line,19}]},
                       {application_master,start_it_old,4,
                           [{file,"application_master.erl"},{line,295}]}]}}}}
    type: permanent

3. QUIC Listen Failure

Debug Output:

QUIC start config: [{alpn,["h3"]},
                    {peer_unidi_stream_count,3},
                    {peer_bidi_stream_count,100},
                    {certfile,"priv/cert.pem"},
                    {keyfile,"priv/cert.key"}]
Starting quicer:listen on port 58732 with opts: [{alpn,["h3"]},
                                                 {peer_unidi_stream_count,3},
                                                 {peer_bidi_stream_count,100},
                                                 {certfile,"priv/cert.pem"},
                                                 {keyfile,"priv/cert.key"}]
quicer:listen failed: {error,config_error,tls_error}

Final Error:

=ERROR REPORT==== 16-Jun-2025::15:09:06.708758 ===
Error in process <0.846.0> on node hb@ns31528130 with exit value:
{{badmatch,{error,config_error,{error,config_error,tls_error}}},
 [{hb_http_server,'-start_http3/3-fun-1-',3,
                  [{file,"/home/ubuntu/HyperBEAM/src/hb_http_server.erl"},
                   {line,224}]}]}

This is blocking the development of this device

Questions

  1. Is HTTP/3 support fully implemented and ready for use?
  2. Is there a specific branch where HTTP/3 functionality is working?
  3. Are there additional configuration steps or dependencies required for HTTP/3 that aren't documented?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions