-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
This is a partial code snippet from my APIClient class. I have this method 'run' triggered by a button click.
The code is working for the first 'apiURL' variable for not for the 2nd which is my own locally running API. I know my local API is fine because I can hit it with Postman and my iPhone (same network).
Do you have any clue what might be happening? Thanks!
adamski::RestRequest request;
APIClient() : juce::Thread("APIClient Thread") {}
void run() override
{
//juce::String apiUrl = "https://jsonplaceholder.typicode.com/todos/1"; //works
juce::String apiUrl = "https://192.168.1.123:7031/get-single-anonymous"; //doesn't work
auto response = request.get(apiUrl).execute();
Logger::outputDebugString("response: " + response.bodyAsString);
}
Metadata
Metadata
Assignees
Labels
No labels