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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get data from GitHub using talend tRESTClient?

Hi All, I'm trying to get the data from Github url using tRESTClient of Big Data Open Studio. But I got error. My job is, 1. tRESTClient 2. tXMLMap 3. tLogRow In tRESTClient, URL "https://api.github.com/users/sample/repos", HTTP Method "GET" and Accept Type "XML". When i trying to execute this job, I'm getting Error. Exception in component tRESTClient_1 javax.ws.rs.NotSupportedException: HTTP 415 Unsupported Media Type How can i resolve this issue?Even i added content type in advanced settings.
Labels (1)
10 Replies
cterenzi
Specialist
Specialist

I tested the same with the sample link you provided. The service is returning JSON, not XML.
Anonymous
Not applicable
Author

I tried with Accept Type in JSON, But is giving NULL values.How can get the data? Is tXMLMap need to change anything?
jilanisyed
Creator
Creator

Hi
I tried with Accept Type in JSON, it  is giving Response in XML format. i believe you need to check txmlmap configuration

Anonymous
Not applicable
Author

I'm getting NULL values, when tired with JSON in Accept Type
Anonymous
Not applicable
Author

This is my tXMLMap Detail
3.png
jilanisyed
Creator
Creator

Hi Praksh,

there is one extra root element is coming from response please see my txmlmap configuration0683p000009LvmI.png 

Anonymous
Not applicable
Author

I couldn't open your image.
Anonymous
Not applicable
Author

Is this right way of mapping data using tXMLMap? I tried with tExtractJSONFields, but i'm getting this error. A JSONObject text must begin with '{' at character 1 of
jilanisyed
Creator
Creator

can you check now


xmlmap.png