Skip to content

Experience Cloud Guest User #209

Answered by jongpie
taits asked this question in Q&A
Sep 20, 2021 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Hey @taits! Yeah, my goal is that logging should work for Experience Cloud (including the guest user), but it sounds like there might be a bug for the guest user scenario. Any chance you could share a stack trace string for the error that happens on that line? My guess is that for the guest user, Salesforce probably doesn't provide a request ID, so I'm guessing System.Request.getCurrent() is null --> it fails on the chained call to getRequestId(). If that's the case, then I think it should be a (hopefully) easy fix to make.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@mohitlakde
Comment options

@mohitlakde
Comment options

@jongpie
Comment options

@jongpie
Comment options

@jongpie
Comment options

Answer selected by jongpie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Salesforce Feature: Experience Cloud Items related to using Logger within Experience Cloud
3 participants