Studio SNIPPET GetRESTProxy returns empty object

GetRESTProxy keeps returning an empty object instead of the JSON payload. The endpoint works fine in Postman with the same headers. The script just hangs or moves on with null values. Here’s the flow:

{
 "action": "SNIPPET",
 "code": "var client = GetRESTProxy(); var res = client.Get('https://api.example.com/data', {'Authorization': 'Bearer ...'}); ASSIGN('resp', res);"
}

Why is it blank?