tRestClient post from csv file

Six Stars

tRestClient post from csv file

Hello

I need you help for the following job:

 

tFileInputDelimited -> tXMLMap -> tRestClient

MetaData is: email, firstname, lastname, website_id

 

I have this error on tRestClient:

Exception in component tRESTClient_1
javax.ws.rs.NotFoundException: HTTP 404 Not Found
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:504)

 

Please note atached printscreens

By the way, url destination is Magento

Can you help on this?

 

Thanks

 

Ten Stars

Re: tRestClient post from csv file

HTTP 404 Not Found... basically ... your endpoint is 'non-existing' (maybe case sensitive)
Suggestion, try it first (check your version of Magento) at/with : https://devdocs.magento.com/swagger/



Six Stars

Re: tRestClient post from csv file

Hi
Url is ok.
I have tested same content with postman tool and it works fine.
Has anyone here made rest posts with magento?
Ten Stars

Re: tRestClient post from csv file

Did you set your headers correctly, Postman set them on some defaults but in Talend you need to do it yourself if not (probably) the magento api isn't be capable of handling your REST call ?
Use the headers from your postman call.



Six Stars

Re: tRestClient post from csv file

Hello

Yes, headers are correct since we are using specific headers, and they work fine in Postman

I made several integrations and magento is the only one with this issue....

 

 

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now