Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements not loading(401) after oath integration. #1476

Closed
rv59-njit opened this issue Oct 24, 2024 · 2 comments
Closed

Elements not loading(401) after oath integration. #1476

rv59-njit opened this issue Oct 24, 2024 · 2 comments
Labels
auth Pertaining to authentication. bug Something isn't working needs-triage

Comments

@rv59-njit
Copy link

We have image elements with the following code in our chat app:

    map_image = cl.Image(path="./public/map.png", name="image1", display="inline")
    final_answer.elements = [map_image]

This was working fine until we added auth integration using auth0. Now, images are not loading because of 401 error with the following error:

{"detail":"Invalid authentication token"}
src="https:/xxxxxxxxxxxxx.com/project/file/27b79c3b-d425-4660-b7f7-2500fbe0d4ef?session_id=cfa5ecb7-ef16-48b6-a655-04810f28b776"

Can you please tell us how we can bypass authentication for public images in our project?

P.S. we are using chainlit 1.3

@dosubot dosubot bot added auth Pertaining to authentication. bug Something isn't working labels Oct 24, 2024
@hayescode
Copy link
Contributor

See #1472

I have PR #1474 open to revert it.

@dokterbob dokterbob changed the title Image element not loading(401) after oath integration. Elements not loading(401) after oath integration. Oct 24, 2024
@dokterbob
Copy link
Collaborator

Dup of #1472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Pertaining to authentication. bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants