Bad gateway error when calling space endpoint from N8N

In my n8n workflow, I have an HTTP request node pointing to:

https://lukante-summarizer.hf.space/summarize

It was working perfectly before, but recently I started receiving the following error:

“Bad gateway - the service failed to handle your request”

The Space itself is active and running, but requests from n8n consistently fail with this error. Could you please advise what might be causing this issue or how to resolve it?

1 Like
token=os.environ["HF_TOKEN"]

There are several possible causes, but for now, when calling Spaces secrets remotely—including via MCP—it often doesn’t work properly. Passing the token as an argument is a workaround.