[MXS-4367] AxiosError: Network Error, while creating a new connection Created: 2022-10-25  Updated: 2022-10-26  Resolved: 2022-10-26

Status: Closed
Project: MariaDB MaxScale
Component/s: maxgui
Affects Version/s: 22.08.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Naresh Chandra Assignee: Duong Thien Ly
Resolution: Duplicate Votes: 0
Labels: None

Attachments: PNG File image-2022-10-25-15-35-32-325.png    
Issue Links:
Duplicate
is duplicated by MXS-4358 Query editor doesn't redirect to the ... Closed

 Description   

We are getting the below error while creating a new connection. Even I tried to check the logs, but I did not find any errors.
NOTE: Even I try to restart the Maxscale service but no luck. But, after clear the browser cache then it's working fine, there is some issue with query editor browser cache.



 Comments   
Comment by Duong Thien Ly [ 2022-10-26 ]

Hi naresh.chandra@copart.com, thanks for the bug report. We're on this already. https://jira.mariadb.org/browse/MXS-4358. It'll be fixed in the next maintenance release. As a workaround, you can access the login page directly with the following URL: https://127.0.0.1:8989/#/login.

Comment by Naresh Chandra [ 2022-10-26 ]

But even after I login to the maxscale we got the issue.

Comment by Duong Thien Ly [ 2022-10-26 ]

Hmm, that's odd. Can you provide steps to reproduce that?
Can you also provide the errors shown in the browser console? For Chrome, press ctrl + shift + i, then click the "Console" tab.

Comment by Naresh Chandra [ 2022-10-26 ]

Now I am unable to reproduce the issue, but after clearing the browser cache the issue was resolved. But I see the below error now.

ERROR [store-user-fetchLoggedInUserAttrs] http://test123:8080/js/app~06837ae4.8fba0b5a.js:1
Object { message: "Request failed with status code 404", name: "AxiosError", code: "ERR_BAD_REQUEST", config:

{…}, request: XMLHttpRequest, response: {…}

, stack: "" }

code: "ERR_BAD_REQUEST"

config: Object

{ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }


message: "Request failed with status code 404"

name: "AxiosError"

request: XMLHttpRequest

{ readyState: 4, timeout: 0, withCredentials: false, … }


response: Object

{ data: "", status: 404, statusText: "Not Found", … }


stack: ""

<prototype>: Object

{ constructor: o(e, t, n, r, o), toJSON: toJSON(), stack: "", … }
Generated at Thu Feb 08 04:28:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.