If curl -i
does not give you any headers as sent by the server, then this is some weird problem (with a weird message) from your local system, not from TTN’s server. Maybe some hidden newline in the command line?
Note that only the key is secret; redacting the other parts of the actual command you’re using is just adding confusion.