11-20-2024 04:05 PM
I am trying to get started using LabVIEW to interact with APIs. I am starting by following some simple examples I found on YouTube, but I keep getting a time out error message. This is the same when using HTTP REST Client and HTTP Client. The same error also occurs when trying different APIs. I am able to access the APIs buy typing in the URL on my browser with no issues. Below is a screenshot of my error as well as code snippets.
ijoey12_0-1732140077863.png
ijoey12_1-1732140196275.png
ijoey12_2-1732140212020.png
11-20-2024 04:35 PM
@ijoey12 wrote:
... as well as code snippets.
A snippet in LabVIEW has a special meaning and is an image with embedded code.
Unfortunately, you only attached an image, not a snippet.
11-21-2024 08:57 AM
Apologies for the misuse of terminology.
11-22-2024 07:16 AM
The server at URL https://my-json-server.typicode.com/typicode/demo/profile returns the data as raw json.
When using the get function, you can specify a path for a file to receive the response. Specify a temporary file, then read the contents.
test_REST_basic.png