web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ServiceNow Connector (...
Power Apps
Unanswered

ServiceNow Connector (Basic Auth) fails with 502 BadGateway

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone,

 

I have isolated the behavior of a persistent 502 BadGateway error with the ServiceNow Connector, and it points to a session/caching bug in the connector itself.

 

The Setup:

  • Integration: Power Automate -> ServiceNow Connector.

  • Auth: Basic Authentication (Service Account, local user).

  • Environment: Enterprise (DNB).

The Issue:
The integration works initially but fails consistently after approximately a day with a 502 BadGateway.

The Workaround:
I confirmed that the credentials are valid and the connection object itself is not broken.
To fix the 502 error, I do not need to create a new connection or change the password.

  1. I go to the Solution in Power Apps/Automate.

  2. I open the Connection Reference used by the Flow.

  3. I switch the connection to a different existing connection (e.g., "ServiceNow 25.01").

  4. I immediately switch it back to the original connection ("ServiceNow 24.01").

  5. Result: The Flow immediately starts working again.



  6.  

Conclusion:
This manual toggle forces the Power Platform to refresh/re-hydrate the connection metadata. It seems the connector's session to the ServiceNow instance goes "stale" or gets corrupted, and the connector fails to automatically refresh the handshake, resulting in a 502.

Any help or similar experiences would be greatly appreciated!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard