#405 method not allowed

1 messages ยท Page 1 of 1 (latest)

rapid bay
#

๐Ÿ‘‹ sorry about this! A few quick questions:

  • Do you have anything in your network setup that might explain the issue? Like a weird corporate proxy, slow internet or equivalent?

  • Did you have any calls that did not experience the 405 errors, and if so, any changes that could explain it?

Thanks!

near cape
#

I'm using "Little Snitch" but had it disabled during the testing. I'm in my home network which is very standard.

#

Using Fiber internet in Berlin.

rapid bay
#

๐Ÿค” @versed river @naive zodiac @spring sun @red frost are we aware of any reliability issues at ingestion?

versed river
#

from the screenshot, I see it's hitting http://api.dagger.cloud instead of https://api.dagger.cloud for some reason

#

i don't see anything in our code that returns 405, so maybe it's hitting a http->https redirect handler that only wires up GET? just a guess. my main question is what's switching it from https:// to http://

maiden shard
#

@near cape does this work for you?

curl https://api.dagger.cloud/health
near cape
maiden shard
#

can you please set the env variable DAGGER_CLOUD_URL to https://api.dagger.cloud and try again please? Just trying to rule out if that will fix it ๐Ÿ™

near cape
maiden shard
#

ok, this is definitely strange... @near cape any chance you have a few minutes in 10 to check it together in #911305510882513037?

red frost
red frost
# near cape

The fact that this is trying to connect to http is suspicious, but even then the redirect should catch this: httpstat http://api.dagger.cloud/v1/traces -X POST

#

@near cape what does dig api.dagger.cloud +short return for you?

maiden shard
#

yeah, strange. First time I've seen this kind of issue. Makes me think that it must be related to the user setup somehow ๐Ÿค”

red frost
#

I have seen something similar for Daggerverse.dev, where the users were connecting via ISP proxies, not the real origins. If you are seeing anything other than these 2 IPs for api.dagger.cloud @near cape, then there is some other endpoint in-between which is misbehaving:

dig api.dagger.cloud +short
3.95.80.43
52.20.62.189
maiden shard
red frost
maiden shard
near cape
#

can't do calls right now, sorry

maiden shard
# near cape

np @near cape ! thx for sharing this ๐Ÿ™

#

by any chance you don't have any OTEL_* env variables set in your environment, don't you?

maiden shard
near cape
#

Yay, that fixed it. I do need those env vars for my app though.

versed river
near cape
#
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://${DEVSERVER_HOSTNAME}:4318/v1/traces"
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT="http://${DEVSERVER_HOSTNAME}:4318/v1/traces"
maiden shard
near cape
maiden shard
# near cape Given I'm using `direnv` in the root of my monorepo this would cause quite a bit...

we could add a prefix but we'd like to stick to the standard as much as we can and also chaning the variable, means breaking backwards compatibility with existing tools . I guess the other option is unsetting the variables before calling dagger? i.e: set -u OTEL_EXPORTER_OTLP_TRACES_ENDPOINT -u OTEL_EXPORTER_OTLP_METRICS_ENDPOINT dagger. Not sure if direnv allow defining aliases / functions to overcome this ๐Ÿค”