mck-9061 / CATS

An Elite Dangerous Fleet Carrier auto jumper/autopilot and an interface for managing multiple carriers.
17 stars 6 forks source link

Add Carrier dops an Exception #21

Closed nyenyon closed 1 year ago

nyenyon commented 1 year ago

Hi,

jus installed CATS freshly on my computer. CATS starts normally. When i try to add my carrier, i get this error after logging in at FDEV and appoveal of the accessrights:

image

image

image

[Image redacted; contains auth key]

any idea? It worked with the 1.x version.

best regards nyenyon

nyenyon commented 1 year ago

https://auth.frontierstore.net/auth?scope=auth%20capi&audience=frontier&response_type=code&client_id=12ce9cc3-51c3-4daa-b07a-16d8b9c1ddec&code_challenge=ODqoP98F5DxB4TpM2-kzVQe0KCBRgpoFNZopo9H0iEA&code_challenge_method=S256&state=4AUBC8DhkMU&redirect_uri=http%3A%2F%2Flocalhost%3A57330%2F { "access_token": "[redacted]", "token_type": "Bearer", "expires_in": 14399, "refresh_token": "[redacted]" } Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. bei System.Net.HttpWebRequest.GetResponse() bei MultiCarrierManager.ApiTools.CAPI.Get(String url) bei MultiCarrierManager.Form1.AddCarrierButton_Click(Object sender, EventArgs e) bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) https://auth.frontierstore.net/auth?scope=auth%20capi&audience=frontier&response_type=code&client_id=12ce9cc3-51c3-4daa-b07a-16d8b9c1ddec&code_challenge=F0dnWneU7VTp9xB5v52gXZs9S9U9WlEvtnHLVoPrE9Y&code_challenge_method=S256&state=ef--jMnipKo&redirect_uri=http%3A%2F%2Flocalhost%3A61244%2F

mck-9061 commented 1 year ago

Hi - firstly, I've edited your posts to remove the auth key. This is a public issues page.

How many times did you try adding the carrier? Try removing any files in carriers/ and carriers/profiles/

nyenyon commented 1 year ago

i tried it several times, it never worked. the carriers/profiles folder is (still) empty.

image

image

nyenyon commented 1 year ago

Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. The remote server returned an error: (400) Invalid request.

this indicates a 400 error code from FDEV-server maybe...

i should mention, that i bought EDO from epic games... but since it worked before, that sould not be the issue?

nyenyon commented 1 year ago

even removing "carriers" does not help.

mck-9061 commented 1 year ago

This is really weird... could you try an old 1.x version again and see if it still works? You can transfer over the carrier files if it does

nyenyon commented 1 year ago

i get the same error with v1.x (my prevous installation)...

Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. bei System.Net.HttpWebRequest.GetResponse() bei MultiCarrierManager.ApiTools.CAPI.Get(String url) in H:\mcm\MultiCarrierManager\MultiCarrierManager\ApiTools\CAPI.cs:Zeile 27. bei MultiCarrierManager.Form1.AddCarrierButton_Click(Object sender, EventArgs e) in H:\mcm\MultiCarrierManager\MultiCarrierManager\Forms\Form1.cs:Zeile 328. bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

nyenyon commented 1 year ago

i get the same error with v1.x (my prevous installation)...

Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. bei System.Net.HttpWebRequest.GetResponse() bei MultiCarrierManager.ApiTools.CAPI.Get(String url) in H:\mcm\MultiCarrierManager\MultiCarrierManager\ApiTools\CAPI.cs:Zeile 27. bei MultiCarrierManager.Form1.AddCarrierButton_Click(Object sender, EventArgs e) in H:\mcm\MultiCarrierManager\MultiCarrierManager\Forms\Form1.cs:Zeile 328. bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

nyenyon commented 1 year ago

there one difference. i just tried to get carrierstats with EDDI. That worked perfectly. The Auth-Page is different though: image

here i can select epic games for login.

mck-9061 commented 1 year ago

patch.zip

Please try this (just overwrite the existing EXE file in the 2.1 installation). I've changed the login page to allow for Epic accounts. I don't know why this should make a difference, but FDev have been known to do weirder things

nyenyon commented 1 year ago

Success: image

there are still some errors.... The errors occur during "Add carrier" when ever i do "Pull Stats".

mck-9061 commented 1 year ago

Glad that's working now, I'll get it put into a release soon.

Those errors are known about, they don't actually cause any problems - they were just for debugging purposes.