Skip to content

🐞 transport not supported #7592

Closed
Closed

Description

@sagikazarmark

What is the issue?

Builds are intermittently failing with the following error:

get fn name: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}

Dagger version

dagger v0.11.6 (registry.dagger.io/engine) darwin/arm64

Steps to reproduce

The error occurs intermittently, I don't have a way to reproduce it.

Log output

No response

Activity

  1. added this to the v0.11.7 milestone on Jun 10, 2024
  2. sipsma commented on Jun 10, 2024

    @sipsma
    Contributor

    Looked quickly since this error message did not ring any bells, it is coming from our gqlgen dep here: https://github.com/99designs/gqlgen/blob/d9ba340552d1adb25e32584b2a4d3dfc9e254d24/graphql/handler/server.go#L119

    No immediate clues as to how this could happen intermittently, on the surface it suggests the http request in malformed. I think if nothing else we can for the next release add some bare bones minimum logging of relevant parts of the request (method, headers, etc.) to see if we can figure out what's happening.

    Adding this to the release milestone so we don't forget; will do that tomorrow.

  3. added
    kind/bug
    area/engine
    on Jun 10, 2024
  4. sipsma commented on Jun 10, 2024

    @sipsma
    Contributor

    Sent a PR w/ debug logs for next release; removing this issue from the milestone since that PR is now attached to it instead.

  5. removed this from the v0.11.7 milestone on Jun 10, 2024
  6. sipsma commented on Jun 11, 2024

    @sipsma
    Contributor

    I actually managed to hit this locally one time now, but I of course was on a branch that didn't have #7602 and didn't repro again after running in a loop again for like 20 minutes.... I may try to set something up to run over night to repro if nothing else.

  7. sipsma commented on Jun 11, 2024

    @sipsma
    Contributor

    Finally hit this one with the logging in place and:

    time="2024-06-11T21:29:43Z" level=debug msg="handling http request" contentType=application/json method=OST path=/query span="[internal] exec /runtime" upgradeHeader=
    [buildkit] [trace=9351b8aca9e9871f07674c47f00484e8] [client=8y4lmohdiv1ouburuuwjo45uy] #100 0.666 get fn arg name: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}
    

    OST is indeed not an HTTP method! Something is going very wrong somewhere, best guess is some read/write is not synchronized and getting dropped. Will keep looking for the root cause.

  8. sipsma commented on Jun 12, 2024

    @sipsma
    Contributor

    Good news, there is a reasonable chance this was fixed by #7315

    I ran the same tests I repro'd with last time in a loop for a total of almost 2 hours without the error happening again. Last time I repro'd, it took looping those tests for ~30m, so I can't be 100% sure yet but good initial signs.

    That PR removed a massive amount of complication in how HTTP requests get sent, so it's highly plausible it ended up removing whatever bug was causing the first byte of HTTP requests to go missing and thus turn POST into OST.

    Will leave this open until the next release has been out for a bit and we don't get any more reports of it.

  9. self-assigned this
    on Jun 12, 2024
  10. sipsma commented on Jun 28, 2024

    @sipsma
    Contributor

    @sagikazarmark if you've upgraded to v0.11.7 or higher, let me know if this went away. If so I'll go ahead and close the issue.

  11. jonnyczi commented on Jul 19, 2024

    @jonnyczi

    I'm facing this issue intermittently on 0.11.7

    I'm running this in Tekton. I will have to try with debugging on.

    �[95m5 : �[0m ModuleSource.�[1mresolveFromCaller�[0m�[32m DONE�[0m�[90m [21.1s]�[0m
    �[95m7 : �[0m ModuleSource.�[1masModule�[0m�[2m: Module!�[0m
    �[95m7 : �[0m ModuleSource.�[1masModule�[0m�[33m ERROR�[0m�[90m [0.4s]�[0m
    �[95m7 : �[0m �[33m! failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2�[0m
    �[95m4 : �[0minitialize�[33m ERROR�[0m�[90m [21.5s]�[0m
    �[95m4 : �[0m�[33m! input: moduleSource.withContextDirectory.asModule resolve: failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2
    Stdout:
    get fn arg value: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}�[0m
    Error: input: moduleSource.withContextDirectory.asModule resolve: failed to create module: select: failed to update codegen and runtime: failed to generate code: failed to call sdk module codegen: select: call function "Codegen": process "/runtime" did not complete successfully: exit code: 2
    Stdout:
    get fn arg value: returned error 400 Bad Request: {"errors":[{"message":"transport not supported"}],"data":null}
    make: *** [Makefile:248: pipeline-dagger] Error 1
    
  12. jedevc commented on Jul 3, 2025

    @jedevc
    Contributor

    These haven't been seen in a while - we're now at v0.18.12, lots has changed.

    We should open a new issue, if this is still happening.

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

Metadata

Metadata

Assignees

Labels

area/enginekind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions