Not getting "Could not create session" log

After adding in the if (!Success) with return, along with the log, it’s never calling. For some reason mine always seems to succeed and creates the session, not finding a duplicate session. Not sure if there is a difference in the OSS from the one in the lecture (I’m using 4.26.2), or I missed something?

Are you running from the Editor or doing it from PowerShell or Command Line?
Editor should show this as the session will persist until the editor restarts.

It is worth comparing your code with the changes for the lecture on github to see your code matches or at least is similar to the expected changes.

If you can’t spot anything, can you share the code that should be reporting the log - including that which is creating the session.

It’s possible that I hadn’t run the session in the current editor session time. So that was why I wasn’t getting the log. I had a check of the Github for the lecture and my code looked fine. I’ve moved on now and at Video 60: Populating the Server List, without any apparent issues.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms