Support Questions

Find answers, ask questions, and share your expertise

invokeHTTP connection reset or connection refused but works fine from CLI/Postman

avatar
Visitor

Hi All,

 I am trying to fetch data from the simple wttr api. The below works fine from curl or postman at the same time: 

curl http://www.wttr.in/paris?format=j1

But accessing same from invokeHTTP gives me connection refused or connection reset. I have tried by putting higher timeouts and adding user agents, but no resolution

Do I need to open the internet connectivity somewhere or something?. 

 

invokeHTTP Image 

1 REPLY 1

avatar
Master Mentor

@mansmaan 

I'm afraid there is not enough information shared yet to know exactly why you are experiencing a connection refused or connection reset issue from your NiFi node. 

I was able to use InvokeHTTP with no issue to successfully get a response from the URL you provided. 

MattWho_0-1760967381470.png

MattWho_1-1760967480056.png

MattWho_2-1760967548119.png

I was able to view the weather data that was returned in json format.

Have you tried to reach wttr.in directly from command line on the NiFi server?
This sound like an environmental issue and not a NiFi invokeHTTP issue. 

 

Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt