httpEffect 502 Bad Gatewat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 08:32 AM
Hello,
I have written a component which I am using to pull back 10 incidents just to get my head around components and such. I followed this guide but it was riddled with errors ->
The below code from my index.js is fired on a button click. note: there is my full URL in as the first param of createHttpEffect.
// Get 10 users from the sys_user table
const fetchUsers = createHttpEffect('https://dev007.service-now.com/api/now/table/incident?sysparm_limit=10', {
method: 'GET',
successActionType: USER_FETCH_SUCCEEDED,
headers: {
"Authorization": "Basic " + auth
},
});
This is from my now-cli.json
"development": {
"proxy": {
"origin": "dev007.service-now.com",
"proxies": ["/api"]
}
}
The error I am getting is below.
I dont understand why its using POST or why its trying to access localhost any help would be great
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 08:36 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 10:12 AM
You should post your solution and then mark it as the answer so others know what you did to fix this error.