ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1671 while connecting to rest API with Python

I have a script with python that connects with an API and gets some information. When I run this script with python, it runs fine without errors.

Once I run it using LabVIEW I get the error 1671: Python returned the following error: <class 'Exception'>

michberk_0-1751542632417.png

 

I am guessing that the problem is with the Exception. For some reason when I run the script from LabVIEW I get an error back from the API session. Does someone know more about this?

 

The two required variables here: CTT_URL is given by the python code (it's hidden for data protection) and REQ_ID is an input parameter that in the LabVIEW code is a DBL. Would that be an issue? I tried that the REQ_ID in LabVIEW was a string and an integer , but then the code is running indefinitely and I have to stop LabVIEW using the task manager. 

0 Kudos
Message 1 of 1
(364 Views)