Closed Bug 2015116 Opened 9 months ago Closed 9 months ago

[Smart Window] No chat response from Smart bar

Categories

(Core :: Machine Learning: Frontend, defect, P1)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: pdahiya, Assigned: pdahiya)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai][chat])

Attachments

(1 external file)

Filing to investigate unresponsive chat assistant due to 401 unauthorized and state of FxA token post login (Any expiration?).
Chat assistant gets token from this call which does have cached token logic but with no expiry

It's possible this issue is due to switching service name with fix of Bug 2013398 this week or edge case due to known issue in Bug 2014321

Related Slack thread

Whiteboard: [genai][input]
Whiteboard: [genai][input] → [genai][chat]
Blocks: 1988017
Priority: -- → P1

if it is expiration, i did have working requests for the same fxa/bearer token for at least ~15 minutes but trying again with the same token ~2 hours later it gave 401

edit: actually, i'm not sure when i started using this token so i guess my timing isn't quite helpful

removing the cached and letting it get a new one seems to work

fxa = ChromeUtils.importESModule("resource://gre/modules/FxAccounts.sys.mjs").getFxAccountsSingleton();
fxa.removeCachedOAuthToken({
  token: await fxa.getOAuthToken({
    scope: ["https://identity.mozilla.com/apps/smartwindow", "profile:uid"]
  })
})
Assignee: nobody → chzhou
Assignee: chzhou → pdahiya
Attachment #9543764 - Attachment description: Bug 2015116 - Add 401 authentication retry logic for LLM requests → Bug 2015116 - FxA Token retry logic for LLM requests
See Also: → 2015671
Blocks: 2015981
Blocks: 2015817
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Duplicate of this bug: 2015817
Blocks: 2018918
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: