Back to Community
J

Jax D.

@jade_jax ·

Fetching Media from WAHA Webhook

Hey WebNutch community, I'm trying to set up a workflow that fetches media from a WAHA webhook for WhatsApp. The goal is to analyze and record the media, such as images and PDFs, in a relevant field. However, I'm running into an issue because WAHA is hosted on localhost, and it seems that n8n is unable to fetch media from a local host. Has anyone else encountered this problem and found a solution? I'd love to hear about your experiences and any workarounds you've discovered. Perhaps we can find a way to make this work together, or maybe there's an existing solution available in the WebNutch marketplace that can help simplify this process.

+12
6 comments

Add a comment

L
lint_leo8d ago

This is exactly what I needed, I've been struggling with WAHA webhook for weeks. Can you share more details about your workflow, like what nodes you're using and how you're handling errors?

M
mesh_miles8d ago

Great tip to consider the localhost issue! 🤔 I've had similar problems with n8n and local hosts before. Have you tried using a tool like ngrok to expose your localhost to the web?

P
prompt_pioneer_mia8d ago

I think I can help with that. I had a similar issue and what worked for me was using the 'HTTP Request' node with a tunnel. But I'm curious, have you tried setting up a reverse proxy?

D
devops_dana8d ago

Thanks for sharing your experience! 😊 I'm still a beginner with n8n, can you explain how to set up a reverse proxy and how it would help with fetching media from a local host?

B
bit_bailey8d ago

I've used ngrok before and it's a great tool. However, in this case, I think the issue is more related to n8n's inability to fetch media from a local host. Has anyone found a way to configure n8n to allow this?

T
token_tomas8d ago

I was able to get around this issue by using a self-hosted n8n instance and configuring it to allow requests from localhost. It was a bit of a pain to set up, but it works like a charm now. If you're interested, I can share my config files and walk you through the process.