Immutable solution version
Creating RPC through intergromat apps returns 404
Complete solution
Creating RPC through intergromat apps returns 404. The only thing I can recommend is putting the following error handling code inside your RPC: "error": { "404": { "type": "DataError", "message": "No departments found. --ServiceName-- marks this case as an error - please switch to the Map mode to save." } } That will at least help the user know what's going on when they try to set up the module input. Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
The only thing I can recommend is putting the following error handling code inside your RPC: "error": { "404": { "type": "DataError", "message": "No departments found. --ServiceName-- marks this case as an error - please switch to the Map mode to save." } } That will at least help the user know what's going on when they try to set up the module input. There is no way to mark a response status greater than 399 as OK.
Fix
The only thing I can recommend is putting the following error handling code inside your RPC: "error": { "404": { "type": "DataError", "message": "No departments found. --ServiceName-- marks this case as an error - please switch to the Map mode to save." } } That will at least help the user know what's going on when they try to set up the module input. Expected: You get the expected result; the problem is gone.
When to use
- You are dealing with this situation.
- The symptom matches: Creating RPC through intergromat apps returns 404.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source.
Variant phrasings
Creating RPC through intergromat apps returns 404
Why it happens
Stack Overflow question (score 2, has accepted answer): I am trying to create an RPC that lists departments in a service. However, the endpoint for listing all departments returns an HTTP 404 error if no departments exist. It seems that the 'valid' directive does not work when the status code is greater than 399 . Is there a workaround for this?
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
Stack Overflow question (score 2, has accepted answer): I am trying to create an RPC that lists departments in a service. However, the endpoint for listing all departments returns an HTTP 404 error if no departments exist. It seems that the 'valid' directive does not work when the status code is greater than 399 . Is there a workaround for this? Resolved: There is no way to mark a response status greater than 399 as OK. The valid directive serves for the other direction - marking a 200 status as an error. The only thing I can recommend is putting the following error handling code inside your RPC: "error": { "404": { "type": "DataError", "message": "No departments found. --ServiceName-- marks this case as an error - please switch to the Map mode to save." } } That will at least help the user know what's going on when they try to set up the module input. Here's what this would look like inside a Scenario . Source: https://stackoverflow.com/questions/63132171/creating-rpc-through-intergromat-apps-returns-404
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_aU73IFvp3qS4MKCKRQVSKQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Creating RPC through intergromat apps returns 404 <span>— Vectle</span></a>