REST data source displays an error: HTTPS hostname invalid expected 'www.redwood.org', received 'redwood.org'
book
Article ID: KB0080432
calendar_today
Updated On:
Products
Versions
TIBCO Data Virtualization
v7.0.0 and higher
Description
When a REST data source attempts to access a REST web site, the data source displays an error of the type HTTPS hostname invalid: expected 'www.redwood.org', received 'redwood.org'
Resolution
When using a REST data source, you may receive a message of the type:
An IO exception was encountered during invocation of Web service "getData" at endpoint "https://www.redwood.org/api/v2/news/todaysnews.xml?month=january [data-2915049] Cause: HTTPS hostname invalid: expected 'www.redwood.org', received 'redwood.org'
However, if you copy the same URL i.e.: https://www.redwood.org/api/v2/news/todaysnews.xml?month=january into a web browser, the browser accesses the site successfully.
The reason is that TDV carries out more stringent host name checking than a browser does. To resolve the error, set the following configuration setting to true:
Studio -> Administration -> Configuration -> Server -> Configuration -> Network -> Disable HTTPS Hostname Verification--> Set to true
Issue/Introduction
REST data source displays an error:
HTTPS hostname invalid: expected 'www.redwood.org', received 'redwood.org'