# Keep getting 502 Bad Gateway while access the collection using the shared link

**URL:** <https://community.postman.com/t/keep-getting-502-bad-gateway-while-access-the-collection-using-the-shared-link/18817>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections, json\
**Created:** [January 4, 2021, 11:09am UTC](https://community.postman.com/t/keep-getting-502-bad-gateway-while-access-the-collection-using-the-shared-link/18817 "2021-01-04T11:09:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaikha](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shaikha](https://community.postman.com/u/shaikha)\
**Post date:** [January 4, 2021, 11:09am UTC](https://community.postman.com/t/keep-getting-502-bad-gateway-while-access-the-collection-using-the-shared-link/18817/1 "2021-01-04T11:09:06Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

We are running out postman collection using newman on jenkins. Around 3 hrs back we started getting this error:

the url “[[https://www.getpostman.com/collections/2e6135bd2b91c4fX](https://www.getpostman.com/collections/2e6135bd2b91c4fX)]([https://www.getpostman.com/collections/2e6135bd2b91c4fX](https://www.getpostman.com/collections/2e6135bd2b91c4fX)” did not provide valid JSON data Unexpected token \< in JSON at position 0 while parsing near ‘ \<title…’ Build step ‘Execute shell’ marked build as failure Finished: FAILURE

We tried access the collection URL in the browser and 50% of the time it throws:

# 502 Bad Gateway

nginx

Can anyone suggest what could be wrong here?

---

<div class="post-metadata">

**Author:** ![bhargavkaranam96](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bhargavkaranam96](https://community.postman.com/u/bhargavkaranam96)\
**Post date:** [January 4, 2021, 1:16pm UTC](https://community.postman.com/t/keep-getting-502-bad-gateway-while-access-the-collection-using-the-shared-link/18817/2 "2021-01-04T13:16:13Z")

</div>

Hey @shaikha,  
We were facing intermittent issues around the same time, the collection link should be working fine now. Could you please check and confirm?

---

<div class="post-metadata">

**Author:** ![shaikha](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shaikha](https://community.postman.com/u/shaikha)\
**Post date:** [January 4, 2021, 6:04pm UTC](https://community.postman.com/t/keep-getting-502-bad-gateway-while-access-the-collection-using-the-shared-link/18817/3 "2021-01-04T18:04:41Z")

</div>

Hey @bhargavkaranam96,  
This is fixed.

Could you give a brief of what the issue exactly was?
