Search code examples
automated-testslocalhostinternal-server-errortestcafeweb-testing

500 internal server error when I try to access external URL from testcafe scripts


I'm not able to access the below-mentioned URL through TestCafe. The URL is as mentioned below, which will access a js file.

https://assets.adobedtm.com/launch-xxxx.min.js

The same will be accessed as mentioned below

http://localhost:1337/Kds4rFTmQ!s!utf-8/https://assets.adobedtm.com/launch-xxxx.min.js

But when I try to access the internal URL, I'm able to access the same.

https://parentwebsite/xxxx.js

The same will be accessed as mentioned below.

http://localhost:1337/Kds4rFTmQ!s!utf-8/https://parentwebsite/xxxx.js

Please let me know what I can do or where I'm going wrong.


Solution

  • On further investigation of the call being made, I found the calls were failing at our firewall and the firewall needed some changes from our end.