Getting strange `kutz-log-nil-tenantid` response when testing API endpoints on RapidAPI

I’m having a weird issue with my RapidAPI setup. I built a new API service and created a basic GET route at /info that should return version information. But whenever I test it using RapidAPI’s testing tools or try calling it directly from my browser, I keep getting this strange response:

{"version":"kutz-log-nil-tenantid"}

This doesn’t make any sense to me. Has anyone else run into this problem before? I’m wondering if there’s some setting or configuration step that I missed when setting up my API. Everything looks correct on my end but clearly something is off. Any ideas what might be causing this unexpected response?

Had the same problem recently - turns out RapidAPI handles request headers differently than direct API calls. That kutz-log-nil-tenantid response means your API’s logging middleware expects tenant info that’s getting stripped out when RapidAPI proxies the request. Create a test endpoint that skips all middleware and see if it responds properly. If it works, you’ve got a middleware config problem. Also check your API logs to compare what headers you’re actually getting from RapidAPI vs direct browser calls.

This looks like a tenant ID validation problem in your API setup. That kutz-log-nil-tenantid response means your API expects a tenant identifier header but it’s getting null or empty instead. Check if your middleware or auth steps need tenant-specific headers like X-Tenant-ID. I ran into the same thing - my API gateway was validating tenant info, but RapidAPI wasn’t passing the headers through properly. You’ll probably need to either update your RapidAPI endpoint settings to include the required headers, or tweak your API logic to handle missing tenant IDs. Also double-check that your /info endpoint isn’t accidentally going through middleware meant for other routes.

i’ve dealt with this too, sounds like middleware not grabbing the tenant ID. might be worth tryin to disable any logging for the /info route or set a default tenant header in RapidAPI’s settings. good luck!

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