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

Add session_id to headers for all HTTP requests to sphinx-tribes backend #820

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aliraza556
Copy link
Contributor

@aliraza556 aliraza556 commented Dec 27, 2024

Describe your changes

Issue ticket number and link: stakwork/sphinx-tribes#2305

Closed: stakwork/sphinx-tribes#2305

Type of change

https://www.loom.com/share/31a1109ea45e4efdaae67b2422e03e50

image

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested on Chrome and Firefox
  • I have tested on a mobile device
  • I have provided a screenshot or recording of changes in my PR if there were updates to the frontend

@kevkevinpal
Copy link
Collaborator

I created a new release for sphinx-tribes because that is why the tests are failing rn

https://github.com/stakwork/sphinx-tribes/releases/tag/v0.1.95

@@ -218,7 +218,8 @@ export class MainStore {
body: JSON.stringify(body),
headers: {
'x-jwt': info.tribe_jwt,
'Content-Type': 'application/json'
'Content-Type': 'application/json',
session_id: this.sessionId
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is session_id supposed to be wrapped in quotes?

@aliraza556 aliraza556 force-pushed the feature/add-session-id-every-request branch from d6cddfa to a4e2119 Compare December 30, 2024 16:24
@kevkevinpal
Copy link
Collaborator

can you try updating to x-session-id

stakwork/sphinx-tribes#2313

I saw that using an underscore is fine but nginx will ignore headers with an underscore so that might be causing the issue, I'll create a new release after merging the tribes PR

@aliraza556
Copy link
Contributor Author

can you try updating to x-session-id

stakwork/sphinx-tribes#2313

I saw that using an underscore is fine but nginx will ignore headers with an underscore so that might be causing the issue, I'll create a new release after merging the tribes PR

@kevkevinpal Sure

@kevkevinpal kevkevinpal force-pushed the feature/add-session-id-every-request branch from af11fa0 to 530f0f3 Compare December 30, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

send session_id in header to backend
2 participants