Freeboard / freeboard

A damn-sexy, open source real-time dashboard builder for IOT and other web mashups. A free open-source alternative to Geckoboard.
http://freeboard.io
MIT License
6.45k stars 1.2k forks source link

Problems with webservice running on localhost #147

Open SestarisCorp opened 9 years ago

SestarisCorp commented 9 years ago

HI,

  I am trying to use a JSON Webservice in my local machine. The server is ok and the response at the browser is all the key-value of JSON.
  But, when i fil Datasource with type JSON and the URL: http://localhost:1512/api/devices/temp/data/1 using the method GET without headers , my datasource don't bring me values.

  I try with CURL at my terminal and I receive the correct response of the server with JSON pars.

  Please help!

 Thanks
tusen commented 9 years ago

Hi!

I might have had a similar issue with fetching info from Fibaro HC2, everything looked great, but no updates (last update was always never). I checked with output with fiddler and debugged the browser to see if i could figure something out. The solution was to add an accept header application/json and running the query via a local instance thingproxy. That worked for me atleast for hc2.

Best regards,

Martin

SestarisCorp commented 9 years ago

Hi Martin,

  Thank you, i used ngrok, seems that use localhost or 127.0.0.1 does not work, only with tunnels.

Best Regards,

Steves

mpeddi commented 6 years ago

Hello,

Have you tried using ThingProxy? You might be running into a CORS issue: https://github.com/Freeboard/thingproxy