[Bug] GitNex dont show repos on first login to an instance #341

Closed
opened 2020-06-04 02:40:23 +00:00 by 6543 · 3 comments
Member

On first logon to a instance:

[Macaron] 2020-04-02 15:03:45: Completed GET /api/v1/users/6543/repos?page=1&limit=50 404 Not Found in 24.863249ms
[Macaron] 2020-04-02 15:03:45: Started GET /user/avatar/test/-1 for 10.40.8.5
[Macaron] 2020-04-02 15:03:45: Completed GET /user/avatar/test/-1 302 Found in 92.136025ms
[Macaron] 2020-04-02 15:04:03: Started GET /api/v1/user/starred?page=1&limit=50 for 10.40.8.5
[Macaron] 2020-04-02 15:04:03: Completed GET /api/v1/user/starred?page=1&limit=50 200 OK in 92.12107ms
[Macaron] 2020-04-02 15:04:08: Started GET /api/v1/users/test/repos?page=1&limit=50 for 10.40.8.5
[Macaron] 2020-04-02 15:04:08: Completed GET /api/v1/users/test/repos?page=1&limit=50 200 OK in 63.804221ms

as you can see GitNex use a wrong user for the first api call

On first logon to a instance: ``` [Macaron] 2020-04-02 15:03:45: Completed GET /api/v1/users/6543/repos?page=1&limit=50 404 Not Found in 24.863249ms [Macaron] 2020-04-02 15:03:45: Started GET /user/avatar/test/-1 for 10.40.8.5 [Macaron] 2020-04-02 15:03:45: Completed GET /user/avatar/test/-1 302 Found in 92.136025ms [Macaron] 2020-04-02 15:04:03: Started GET /api/v1/user/starred?page=1&limit=50 for 10.40.8.5 [Macaron] 2020-04-02 15:04:03: Completed GET /api/v1/user/starred?page=1&limit=50 200 OK in 92.12107ms [Macaron] 2020-04-02 15:04:08: Started GET /api/v1/users/test/repos?page=1&limit=50 for 10.40.8.5 [Macaron] 2020-04-02 15:04:08: Completed GET /api/v1/users/test/repos?page=1&limit=50 200 OK in 63.804221ms ``` as you can see GitNex use a wrong user for the first api call
6543 added this to the 2.5.0 milestone 2020-06-04 02:40:23 +00:00
6543 added the
🐛 Bug
label 2020-06-04 02:40:23 +00:00
6543 closed this issue 2020-06-04 02:40:23 +00:00
6543 self-assigned this 2020-06-04 02:41:03 +00:00
Author
Member

api calls of a fresh GitNex installation on first login:

[Macaron] 2020-04-02 15:21:52: Started GET /api/v1/version for 10.40.8.5
[Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/version 200 OK in 763.942_s
[Macaron] 2020-04-02 15:21:52: Started GET /api/v1/users/test/tokens for 10.40.8.5   
[Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/users/test/tokens 200 OK in 41.917382ms
[Macaron] 2020-04-02 15:21:52: Started POST /api/v1/users/test/tokens for 10.40.8.5
[Macaron] 2020-04-02 15:21:52: Completed POST /api/v1/users/test/tokens 201 Created in 153.0725ms
[Macaron] 2020-04-02 15:21:52: Started GET /api/v1/user for 10.40.8.5
[Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/user 200 OK in 25.09932ms
[Macaron] 2020-04-02 15:21:52: Started GET /api/v1/version for 10.40.8.5
[Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/version 200 OK in 439.433_s     
[Macaron] 2020-04-02 15:21:52: Started GET /api/v1/users//repos?page=1&limit=50 for 10.40.8.5
[Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/users//repos?page=1&limit=50 404 Not Found in 28.256303ms
[Macaron] 2020-04-02 15:21:52: Started GET /user/avatar/test/-1 for 10.40.8.5          
[Macaron] 2020-04-02 15:21:52: Completed GET /user/avatar/test/-1 302 Found in 1.643973ms

notice the 404 error

api calls of a fresh GitNex installation on first login: ``` [Macaron] 2020-04-02 15:21:52: Started GET /api/v1/version for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/version 200 OK in 763.942_s [Macaron] 2020-04-02 15:21:52: Started GET /api/v1/users/test/tokens for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/users/test/tokens 200 OK in 41.917382ms [Macaron] 2020-04-02 15:21:52: Started POST /api/v1/users/test/tokens for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed POST /api/v1/users/test/tokens 201 Created in 153.0725ms [Macaron] 2020-04-02 15:21:52: Started GET /api/v1/user for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/user 200 OK in 25.09932ms [Macaron] 2020-04-02 15:21:52: Started GET /api/v1/version for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/version 200 OK in 439.433_s [Macaron] 2020-04-02 15:21:52: Started GET /api/v1/users//repos?page=1&limit=50 for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /api/v1/users//repos?page=1&limit=50 404 Not Found in 28.256303ms [Macaron] 2020-04-02 15:21:52: Started GET /user/avatar/test/-1 for 10.40.8.5 [Macaron] 2020-04-02 15:21:52: Completed GET /user/avatar/test/-1 302 Found in 1.643973ms ``` notice the 404 error
Author
Member

solution put ther user earlyer into local DB

solution put ther user earlyer into local DB
Owner

Good catch. Indeed it's a nasty bug.

Good catch. Indeed it's a nasty bug.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#341
No description provided.