Debugging user problems is hard #4533
-
Statement of ProblemDebugging user problems on Hubs is difficult for a number of reasons:
Here are some example problems that we struggle to diagnose and fix:
Ideal SolutionThe ideal solution to this problem would look something like this:
These bundles would contain a wealth of information about the state of each room. They could be analyzed in a number of ways, including interleaving the log messages by time to make it easy to follow sequences of operations. Practical First StepsStep 1: Browser LogsOne possible first step is to make it easier for users to share their console logs when reporting problems. This can be achieved by recording the console log in memory and dumping it to a file at the request of the user. Initially this can be hidden behind a URL parameter along with any additional UI, which would probably be some sort of "Save Logs" button. Intercepting the console log is unfortunately limited in that it doesn't include events such as CORS errors, which are a common source of failure in Hubs. These can only be seen in the console log window itself. A pull request is that illustrates how the console log might be recorded and analyzed is here #4535 Step 2: Server LogsIt would be very useful for Hubs Cloud administrators to have a more comprehensive guide to gathering server logs, preferably a single script to execute that can pull everything together that might be relevant. Considered Alternatives
Privacy & SecurityThe privacy implications of users sharing their console logs needs to be considered. It is also possible that sensitive information, such as session tokens, might be written to the logs now or in the future. If the logs are gathered and analyzed "server side" then there are no obvious additional risks. In the case where users can download and share their console logs the risk is significant, but they are already able to do this now using the "Save As" function in the developer console, so it does not represent a new class of vulnerability. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have opened a new issues for this issues here (#4563) I will mark this as answered. |
Beta Was this translation helpful? Give feedback.
-
Related: #4133 |
Beta Was this translation helpful? Give feedback.
I have opened a new issues for this issues here (#4563)
I will mark this as answered.