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

[Bug]: Recently joined Members missing in Network-Members API #539

Closed
1 of 2 tasks
1cue-jrupp opened this issue Sep 4, 2024 · 2 comments · Fixed by #548
Closed
1 of 2 tasks

[Bug]: Recently joined Members missing in Network-Members API #539

1cue-jrupp opened this issue Sep 4, 2024 · 2 comments · Fixed by #548
Labels
bug Something isn't working pinned Does not stale

Comments

@1cue-jrupp
Copy link

1cue-jrupp commented Sep 4, 2024

🐛 Describe the Bug

If new Members join to a ZT network they are missing in in the Network-Members API for up to 5 Minutes. There seems to be a cache or something that delays everything. If you open the corresponding network in the Web UI this seems to update the cache.

This affects API Endpoints like:

GET /network/:networkId/member
POST /network/:networkId/member/:memberId

🔍 Steps to Reproduce

Join a new Client to a Network (where the client was not authenticated yet) and call the POST /network/:networkId/member/:memberId API to authenticate the new member about 10 seconds later. The API responds that the member is not found. It would now take up to 5 minutes, but if you open the corresponding network in the Web UI once, the member is instantly found by the API afterwards

🌐 Browser

Chrome

🔧 Deployment Type

  • Docker
  • Standalone

✨ Expected Behavior

New members should be instantly available to the API or there should be a simple API Call to "refresh" the network members as the Web UI seems to do it. Or is there already such an undocumented endpoint?

📋 ZTNET Logs

No response

🖼 Screenshots

No response

@1cue-jrupp 1cue-jrupp added the bug Something isn't working label Sep 4, 2024
@sinamics
Copy link
Owner

sinamics commented Sep 5, 2024

Thx, will add a fix.

New members should be instantly available to the API or there should be a simple API Call to "refresh" the network members as the Web UI seems to do it. Or is there already such an undocumented endpoint?

No, such endpoint does not exist.

@sinamics sinamics added the pinned Does not stale label Sep 5, 2024
@1cue-jrupp
Copy link
Author

Hi sinamics, thanks, this would be great improvement for our use case! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Does not stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants