EDCD / EDDI

Companion application for Elite Dangerous
Other
440 stars 81 forks source link

EDDI 4.0.2-b1 Frontier API Auth #2419

Closed sero178 closed 1 year ago

sero178 commented 1 year ago

leider verbinden sich eddi nicht mit frontier

fusionmc-evilscoop commented 1 year ago

same situation here...wont auth to frontier api just loops saying connecting and trys to open browser window again

ArNeo-VR commented 1 year ago

Confirm the same issue.

When connection is started, browser opens frontier-auth page. Entered credentials and approved it. EDDI-TTS acknowledges the connection and req. close window. Opens a new auth-page (status in EDDI is connecting).

Auth requesting repeatingly when confirming them. Restarting the EDDI-app, connection status is back to off-line.

Tkael commented 1 year ago

As reported on the forums, the exception loggng reports:

2022-11-26T00:51:50 [Debug] FleetCarrierEndpoint:GetFleetCarrier Getting /fleetcarrier data
2022-11-26T00:51:50 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Access-Control-Allow-Credentials","Date","Server"],"m_Uri":"https://companion.orerve.net/fleetcarrier","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":204,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"No Content","m_MediaType":null}
2022-11-26T00:51:50 [Debug] SpeechService:Say Interrupting current speech
2022-11-26T00:51:50 [Debug] SystemSpeechSynthesizer:Speak Selecting System synthesizer
2022-11-26T00:51:50 [Debug] SystemSpeechSynthesizer:SystemSpeechSynthesis {"standardVoice":"Vocalizer Expressive Petra Harpo 22kHz","volume":60,"effectsLevel":35,"distortOnDamage":true,"rate":-1,"disableipa":false,"enableicao":true}
2022-11-26T00:51:50 [Debug] SystemSpeechSynthesizer:SystemSpeechSynthesis Feeding normal text to synthesizer: Bitte authentifizieren Sie die Verbindung von EDDI zur Frontier API.
2022-11-26T00:51:50 [Debug] CompanionAppService:relogin Service in incorrect state to provide profile (AwaitingCallback)
2022-11-26T00:51:50 [Info] Endpoint:GetEndpoint Service in incorrect state to provide profile (AwaitingCallback)
2022-11-26T00:51:50 [Debug] FleetCarrierEndpoint:GetFleetCarrier /fleetcarrier returned, no change from prior cached data.
Tkael commented 1 year ago

Hmm. I downloaded the released installer for 4.0.2-b1 on a fresh PC and had no trouble with the connection to the Frontier API. Verbose log snippets as follows:

Profile Endpoint

2022-11-27T17:13:33 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Transfer-Encoding","Connection","Access-Control-Allow-Credentials","Content-Type","Date","Server"],"m_Uri":"https://companion.orerve.net/profile","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":200,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"OK","m_MediaType":null}
2022-11-27T17:13:33 [Debug] CompanionAppService:getResponseData Reading response
2022-11-27T17:13:33 [Debug] CompanionAppService:getResponseData Data is {"commander"...

FleetCarrier endpoint:

2022-11-27T17:13:33 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Transfer-Encoding","Connection","Access-Control-Allow-Credentials","Content-Type","Date","Server"],"m_Uri":"https://companion.orerve.net/fleetcarrier","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":200,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"OK","m_MediaType":null}
2022-11-27T17:13:33 [Debug] FleetCarrierEndpoint:GetFleetCarrier /fleetcarrier returned {"name":...
Tkael commented 1 year ago

Currently failing to replicate this issue (sorry!).

nepomuk16321 commented 1 year ago

Ok, I have tested.

  1. uninstalled EDDI (4.0.1) and deleted all directories (plugin directory in VA and in %appdata%/EDDI ).
  2. installed EDDI 4.0.2-b1 (no error messages).
  3. started EDDI >> window opens in the middle of the screen (OK)
  4. directory %appdata%/EDDI checked >> no EDDI directory present !
  5. moved EDDI window and closed EDDI.
  6. restarted EDDI >> window opens in the center of the screen again !!!
  7. uninstalled EDDI 4.0.2-b1 completely like position 1
  8. installed EDDI 4.0.1 !
  9. EDDI started >> EDDI window opens at the position as last left !
  10. check %appdata% , no EDDI directory exists !!!
  11. in the plugin-directory of VA is the file EDDI.exe.config in which one finds the entries mentioned by you !!!
  12. checked API connection >> connection was established without problems !!!!
  13. update over EDDI carried out.
  14. update without problems, error still as described above (no EDDI directory in %appdata%/ , no connection to the API possible). Sorry, with version 4.0.1 the API connection to Frontier worked fine. Why does this need to be changed ? What data do you need, how can we help ?
fusionmc-evilscoop commented 1 year ago
2022-11-28T11:25:17 [Debug] CompanionAppService:getResponseData Data is {"access_token":"<REMOVED>","token_type":"Bearer","expires_in":14399,"refresh_token":"<removed>"}
2022-11-28T11:25:17 [Debug] FleetCarrierEndpoint:GetFleetCarrier Getting /fleetcarrier data
2022-11-28T11:25:17 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Access-Control-Allow-Credentials","Date","Server"],"m_Uri":"https://companion.orerve.net/fleetcarrier","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":204,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"No Content","m_MediaType":null}
2022-11-28T11:25:17 [Debug] SpeechService:Say Interrupting current speech
2022-11-28T11:25:17 [Debug] WindowsMediaSynthesizer:Speak Selecting Media synthesizer
2022-11-28T11:25:17 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis Feeding normal text to synthesizer: Please authenticate EDDI's connection to the Frontier API.

and then it loops..please note 204 on companion responce please note ive removed the token data itself

going back to non beta it all works perfect

Companion responce is 200 on the non beta

2022-11-28T11:29:56 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Content-Length","Content-Type","Date","Set-Cookie","Server","X-Powered-By","Cache-Control","Expires","Vary","Access-Control-Allow-Origin","Access-Control-Allow-Headers","Access-Control-Allow-Credentials","Access-Control-Allow-Methods"],"m_Uri":"https://auth.frontierstore.net/token","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":200,"m_ContentLength":1493,"m_Verb":"POST","m_StatusDescription":"OK","m_MediaType":null}`
Tkael commented 1 year ago

Ok, I have tested.

1. uninstalled EDDI (4.0.1) and deleted all directories (plugin directory in VA and in %appdata%/EDDI ).

2. installed EDDI 4.0.2-b1 (no error messages).

3. started EDDI >> window opens in the middle of the screen (OK)

4. directory %appdata%/EDDI checked >> no EDDI directory present !

5. moved EDDI window and closed EDDI.

6. restarted EDDI >> window opens in the center of the screen again !!!

7. uninstalled EDDI 4.0.2-b1 completely like position 1

8. installed EDDI 4.0.1 !

9. EDDI started >> EDDI window opens at the position as last left !

10. check %appdata% , no EDDI directory exists !!!

11. in the plugin-directory of VA is the file EDDI.exe.config in which one finds the entries mentioned by you !!!

12. checked API connection >> connection was established without problems !!!!

13. update over EDDI carried out.

14. update without problems, error still as described above (no EDDI directory in %appdata%/ , no connection to the API possible).
    Sorry, with version 4.0.1 the API connection to Frontier worked fine. Why does this need to be changed ?
    What data do you need, how can we help ?

File locations have NOT changed. The file controlling window positioning should (still) be appdata/roaming/EDDI/eddi.json. While it is true that EDDI.exe.config has similar values, these are default values and are not updated when the window position and configuration are altered. If eddi.json is not being written to appdata/roaming/EDDI/ then there may be a file permission issue with your system (the file is written correctly for me and updates when the EDDI window closes, both standalone and via VoiceAttack).

We did make some modifications to organize and add additional endpoints to the Frontier API but the fundamentals of the connection process have not changed. There should be a companionAPI.json file created in the sameappdata/roaming/EDDI/` folder to store your Frontier API credentials. Please confirm whether this file is updated with access and refresh tokens when you connect to the Frontier API?

Please provide details about the systems that are having this issue (please use the bug report template to provide as much detail as possible and help me to replicate the issue, if a video could help communicate the problem for example then a link to a video would be much appreciated).

I have been unable to replicate this issue after installing version 4.0.2-b1 on a fresh system. The configuration files are correctly saved and accessed for both VoiceAttack and standalone modes.

Tkael commented 1 year ago
2022-11-28T11:25:17 [Debug] CompanionAppService:getResponseData Data is {"access_token":"<REMOVED>","token_type":"Bearer","expires_in":14399,"refresh_token":"<removed>"}
2022-11-28T11:25:17 [Debug] FleetCarrierEndpoint:GetFleetCarrier Getting /fleetcarrier data
2022-11-28T11:25:17 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Access-Control-Allow-Credentials","Date","Server"],"m_Uri":"https://companion.orerve.net/fleetcarrier","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":204,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"No Content","m_MediaType":null}
2022-11-28T11:25:17 [Debug] SpeechService:Say Interrupting current speech
2022-11-28T11:25:17 [Debug] WindowsMediaSynthesizer:Speak Selecting Media synthesizer
2022-11-28T11:25:17 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis Feeding normal text to synthesizer: Please authenticate EDDI's connection to the Frontier API.

and then it loops..please note 204 on companion responce please note ive removed the token data itself

going back to non beta it all works perfect

Companion responce is 200 on the non beta

2022-11-28T11:29:56 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Content-Length","Content-Type","Date","Set-Cookie","Server","X-Powered-By","Cache-Control","Expires","Vary","Access-Control-Allow-Origin","Access-Control-Allow-Headers","Access-Control-Allow-Credentials","Access-Control-Allow-Methods"],"m_Uri":"https://auth.frontierstore.net/token","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":200,"m_ContentLength":1493,"m_Verb":"POST","m_StatusDescription":"OK","m_MediaType":null}`

Hi there. You do not seem to be experiencing the same issue that others are reporting in this ticket. In your case, the Frontier API appears to be successfully connected but is returning code 204 from the /fleetcarrier endpoint. This indicates a successful connection but that the server has no data available for you at the specified endpoint . This is the expected response if you do not own a fleet carrier.

Please compare versions 4.0.2-b1 and 4.0.1 referencing the same endpoints (for example the /profile endpoint). Comparing different endpoints (e.g. /fleetcarrier vs. /profile) makes comparison more difficult. That endpoint should return code 200 in both versions if the Frontier API is configured correctly.

You mentioned that the connection seems to be looping. Could you provide a larger snippet from your .log files to show this please?

fusionmc-evilscoop commented 1 year ago

Whole log attached too

2022-11-30T13:03:59 [Debug] NavigationMonitor:PreHandle Received event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.6732424Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] EDDI:eventHandler Handling event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.7462417Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] MaterialMonitor:PreHandle Received event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.5817421Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] InaraResponder:Handle Handling event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.7462417Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] MissionMonitor:PreHandle Received pre-event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.5817421Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] NavigationMonitor:PreHandle Received event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.7462417Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] MissionMonitor:PreHandle Received pre-event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.7462417Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:03:59 [Debug] MaterialMonitor:PreHandle Received event {"fsd_status":"charging complete","raw":null,"timestamp":"2022-11-30T13:03:52.7462417Z","type":"Ship fsd","fromLoad":true}
2022-11-30T13:04:02 [Debug] InaraService:SendEventBatch Sending to Inara: https://inara.cz/inapi/v1/
2022-11-30T13:04:02 [Warning] InaraService:validateResponse Inara responded with: This application has a disabled access temporarily.
2022-11-30T13:05:54 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Content-Length","Content-Type","Date","Set-Cookie","Server","X-Powered-By","Cache-Control","Expires","Vary","Access-Control-Allow-Origin","Access-Control-Allow-Headers","Access-Control-Allow-Credentials","Access-Control-Allow-Methods"],"m_Uri":"https://auth.frontierstore.net/token","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":200,"m_ContentLength":1493,"m_Verb":"POST","m_StatusDescription":"OK","m_MediaType":null}
2022-11-30T13:05:54 [Debug] CompanionAppService:getResponseData Data is {"access_token":"REMOVED","token_type":"Bearer","expires_in":14399,"refresh_token":"REMOVED"}
2022-11-30T13:05:54 [Debug] FleetCarrierEndpoint:GetFleetCarrier Getting /fleetcarrier data
2022-11-30T13:05:54 [Debug] CompanionAppService:getResponseData Reading response
2022-11-30T13:05:54 [Debug] CompanionAppService:GetResponse Response is {"m_HttpResponseHeaders":["Connection","Access-Control-Allow-Credentials","Date","Server"],"m_Uri":"https://companion.orerve.net/fleetcarrier","m_Certificate":null,"m_Version":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"m_StatusCode":204,"m_ContentLength":-1,"m_Verb":"GET","m_StatusDescription":"No Content","m_MediaType":null}
2022-11-30T13:05:54 [Debug] SpeechService:Say Interrupting current speech
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:Speak Selecting Media synthesizer
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis Feeding normal text to synthesizer: Please authenticate EDDI's connection to the Frontier API.
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis {"standardVoice":"Microsoft Zira","volume":51,"effectsLevel":50,"distortOnDamage":true,"rate":0,"disableipa":false,"enableicao":true}
2022-11-30T13:05:54 [Debug] SpeechService:Speak Stream length is 138926
2022-11-30T13:05:54 [Debug] SpeechService:Speak Seeking back to the beginning of the stream
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Effects level is 50, chorus level is 30, reverb level is 40, echo delay is 0
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Extending duration by 500ms
2022-11-30T13:05:54 [Debug] CompanionAppService:relogin Service in incorrect state to provide profile (AwaitingCallback)
2022-11-30T13:05:54 [Info] Endpoint:GetEndpoint Service in incorrect state to provide profile (AwaitingCallback)
2022-11-30T13:05:54 [Debug] SpeechService:Say Interrupting current speech
2022-11-30T13:05:54 [Debug] SpeechService:Say Interrupting current speech
2022-11-30T13:05:54 [Debug] FleetCarrierEndpoint:GetFleetCarrier /fleetcarrier returned, no change from prior cached data.
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:Speak Selecting Media synthesizer
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:Speak Selecting Media synthesizer
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis Feeding SSML to synthesizer: <?xml version="1.0" encoding="UTF-8"?><speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd" xml:lang="en-US">Your connection to the Frontier API is operational, Commander <phoneme alphabet="ipa" ph="ˈiːvəlskup">Evilscoop</phoneme>.</speak>
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis {"standardVoice":"Microsoft Zira","volume":51,"effectsLevel":50,"distortOnDamage":true,"rate":0,"disableipa":false,"enableicao":true}
2022-11-30T13:05:54 [Debug] SpeechService:play Starting speech
2022-11-30T13:05:54 [Debug] SpeechService:StartSpeech Checking to see if we can start speech
2022-11-30T13:05:54 [Debug] SpeechService:StartSpeech We can - setting active speech
2022-11-30T13:05:54 [Debug] SpeechService:StartSpeech Playing sound buffer
2022-11-30T13:05:54 [Debug] SpeechService:play Waiting for speech - 00:00:04.8400000
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis {"standardVoice":"Microsoft Zira","volume":51,"effectsLevel":50,"distortOnDamage":true,"rate":0,"disableipa":false,"enableicao":true}
2022-11-30T13:05:54 [Debug] SpeechService:Speak Stream length is 164686
2022-11-30T13:05:54 [Debug] WindowsMediaSynthesizer:WindowsMediaSpeechSynthesis Feeding normal text to synthesizer: You may close your browser window and return to EDDI.
2022-11-30T13:05:54 [Debug] SpeechService:Speak Seeking back to the beginning of the stream
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Extending duration by 500ms
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Effects level is 50, chorus level is 30, reverb level is 40, echo delay is 0
2022-11-30T13:05:54 [Debug] SpeechService:play Starting speech
2022-11-30T13:05:54 [Debug] SpeechService:Speak Seeking back to the beginning of the stream
2022-11-30T13:05:54 [Debug] SpeechService:Speak Stream length is 128366
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Effects level is 50, chorus level is 30, reverb level is 40, echo delay is 0
2022-11-30T13:05:54 [Debug] SpeechFX:addEffectsToSource Extending duration by 500ms
2022-11-30T13:05:54 [Debug] SpeechService:play Starting speech

this was start up, try login to api exit...nothing more nothing less

eddi2.log

could

2022-11-30T13:05:54 [Debug] CompanionAppService:relogin Service in incorrect state to provide profile (AwaitingCallback)
2022-11-30T13:05:54 [Info] Endpoint:GetEndpoint Service in incorrect state to provide profile (AwaitingCallback)

have something todo with the issue ? again rolling back to non beta...logs in first time