WebService x2 debug?

Im testing some webapp interaction - basically @Greg_O_Lone 's web service examples where one app does a HandleURL and the client sends a GET to 127.0.0.1:8080/endpoint.
I am getting 2 strange things; On Mac, the Request.Path is not showing up in the recieving app’s HandleURL request but it is seemingly valid, and then I have to refresh the recieving app’s page for the event to fire into the debugger. The recieving app’s port is 8080 and the sending app’s is 47932. On Win, I can open either one of the apps and debug but the second always chokes and gives the below message - doesnt matter which one I open first, it works and the second opened one wont

I’ve seen a similar compile error when trying to run more than one application simultaneously in the IDE. Two workarounds:

  • build one of the applications and run it, or
  • run the IDE and second application on another computer.

I’ve also seen this when running a project from a shared folder such as Dropbox, OneDrive, or iCloud, but it is likely because you’re running two projects that are trying to build to the same location for debug (as @Eric_Bloom said).

@Greg_O_Lone has a video (https://youtu.be/vCGNB94y0DU) out showing this working - debugging two applications at once. The video seems to be Web1.0 so maybe this doesnt work with web2? Its kind of hard to debug HandleURL. The problem with building one is it calls the other and they are both localhost. Both applications are in their own folder and so both have their own debug folder so thats not it. I guess I will send it calls from postman or thunderclient…hmmph!

Hello Sean

A couple of things:

  1. The video is Paul’s not Greg’s.
  2. Have you set different ports for each app? I’m currently running two web apps in debug mode with no problems but each one on a different port.
  3. What @Anthony_G_Cyphers said about the debug folder-

In Web1.0 you had to set a port that the debug app would run on. Is that still a thing on Web2? I no longer have access. If it is you need to set both to different ports.

@Paul_Lefebvre - sorry, Paul’s nice video! yes, as I said above they are on different ports and live in different folders.

Its still there and I have them set to different ports and Ive tried a few different ports…

And heres the even stranger thing - On Mac I can debug both at the same time but, the Request.Path is not showing up in the recieving app’s HandleURL request but it is seemingly valid, and then I have to refresh the recieving app’s page for the event to fire into the debugger. It works as expected sending a GET from thunderclient in VScode…but I cant send a session ID etc nor test the commo…grrrr!

so I do see the Request.path in the example app, “API Sample” HandleURL event so Im not sure what I have wrong in my code. It works with the example so