Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

tFileFetch returns on 403 but not in TOS.

Hello,

I'm trying to use an API that fetches pictures.

It runs fine in Talend Studio.

It runs fine in Postman

The build runs fine with the .bat.

But when we deploy to a Linux machine and run it with the .sh, we get

Exception in component tFileFetch_1 (TFileFetch_Debug)

java.lang.Exception: Method failed: HTTP/1.1 403 Forbidden

I've tried all the methods I could find here on the community board but no luck.

https://community.talend.com/s/article/tFileFetch-fails-with-Forbidden-kLdke?language=en_US

https://community.talend.com/s/feed/0D73p000004kDpgCAE?language=en_US

Maybe someone has another tips&trick?

Labels (2)
4 Replies
Anonymous
Not applicable

Where is the API hosted? Is it a public API or internal?

Do you have another linux machine to test it on?

I presume Java versions are the same on all machines you have tested it on?

 

JayQueue
Creator
Creator
Author

The API is on CloudFlare, it's an external API.

 

So now I switched to tHttpRequest as a test and that works! So why is tFileFetch not doing that.....

JayQueue
Creator
Creator
Author

So we switched to tHttpRequest in our jobs and it works. tFileFetch is flawed?

Talend Open Studio for ESB 7.1.1.20181026_1147

Anonymous
Not applicable

Unfortunately it is very difficult to even try to assess what might have caused this behaviour difference without having access to the job and the environments that you have seen this on. Looking at the CloudFlare Community, it seems that this is not an unusual problem (https://community.cloudflare.com/t/community-tip-fixing-error-403-forbidden/53308). Web services are notoriously tricky to work with and can often need advanced tweaks with header values (which do have defaults if they aren't set), etc, to provide the server exactly what it requires to respond appropriately.