Undefined json error in web version of Postman only, but desktop works

When configuring a Postman workspace and environment, I am able to successfully authenticate and perform API calls using the desktop version of postman. However, when attempting to do this process over the web version of postman, I receive the following error in console:

The way I am reading this, the tenant is not being defined, despite having defined the variable in my environment and/or collection. From other posts I have read on this, it seems that it could be an issue with the pre-script not defining the tenant.

Could someone share what basic steps are needed to resolve this, or have any ideas why this would work over the desktop client, but not the web version?

I have replicated the issue over multiple instances and on both the V3 and V2025 Collections.

Yeah it looks like a problem with your tenant variable. It’s building into “https://undefined.api.identitynow.com” instead of properly populating your tenant in the URL.

It sounds like your “collection” in the web postman is right but maybe your “environment” isn’t being applied to it correctly. I’d recommend ensuring you have the right environment selected from the dropdown and that the tenantis populated within it.

If that doesn’t help, I’d recommend double-checking that the tenantvariable isn’t defined in two places, causing a scope conflict. Such as in both the tenant and the environment. If that all looks correct, validate the pre-request script is calling on variables that are actually defined in your environment.

@ShaneMcLeroy

Give this a look.

The web app runs in your browser, so requests are limited by CORS, TLS rules, and network reachability. The desktop app/desktop agent isn’t.

In the web app (bottom-left), click Agent.
If it says “Cloud Agent” → switch to Desktop Agent.

  • If you don’t see Desktop Agent, install it and make sure it’s running (and not blocked by your corporate proxy/AV).

  • The Desktop Agent lets the web app send requests from your machine (bypasses browser CORS and can reach private/internal hosts and localhost).

1 Like

Thanks for replying. I took a harder look at my environment selection in the web version, not sure if it was a me thing, or a postman thing, or something with cache/cookies. but my environment selection was not persisting on page refreshes.

1 Like

Glad you were able to resolve it!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.