We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Unable to connect to the custom data source API endpoint

Resolved
Laurier Lapointe asked on April 21, 2022

Hi,
I'm trying to connect to a SQL server. I followed the above tutoriel :
Referencing the Data Server as a DLL • Flexmonster
I also downloaded the "flexmonster-data-server-dll" example. I used the same code and added my own new container below the one called "pivotContainer". The issue that I have is I'm having an error message "Unable to connect to the custom data source API endpoint 'http://locahost:51718/fields'. I included in this ticket some images.
Can you help me please ?
Thank you

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 22, 2022

Hello, Laurier!
 
Thank you for contacting us.
 
We managed to reproduce your error on the "flexmonster-data-server-dll" example. Please, try to add '/api' to the URL in the dataSource object:

dataSource:{
Type:"api",
index:"boa-index",
url:"http//localhost:51718/api"
}

To check the request URL, you need to open browser developer tools(press F12), go to the network tab, and explore, e.g., "fields" request.
 
Kidly note that the componentFolder property should be specified when creating new Flexmonster instances to avoid issues in the future.
 
Please, let us know if it helps.
 
Regards,
Solomiia.

Public
Laurier Lapointe April 22, 2022

Hello Solomiia,
Thank you for reaching out. I added the "/api" and the componentFolder property set at "flexmonster/" as you mentionned and it is now working. 
Thank you

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 22, 2022

Hello again!
 
Thank you for your quick feedback.
We are glad to hear that it works for you.
 
Please, feel free to ask if any further questions arise.
 
Best regards,
Solomiia.

Please login or Register to Submit Answer