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

Frontier CAPI error #2048

Closed
techno314 opened this issue Aug 3, 2023 · 13 comments
Closed

Frontier CAPI error #2048

techno314 opened this issue Aug 3, 2023 · 13 comments
Labels
bug unconfirmed An unconfirmed bug
Milestone

Comments

@techno314
Copy link

techno314 commented Aug 3, 2023

Please complete the following information:

  • Version: All versions from 5.8.1 and up so far
  • Game Version: Live|Horizons
  • OS: Windows 11
  • OS Locale: English

Describe the bug
When you are currently docked at any Fleet Carrier, EDMC will fail update and will spit out the error "Frontier CAPI: Misc. Error"

To Reproduce
Steps to reproduce the behavior:

  1. Open EDMC and Elite Dangerous
  2. Log into any mode
  3. Fly to any Fleet Carrier
  4. Dock and press update on EDMC

Expected behavior
It should properly update and say "Last updated at xx:xx:xx"

Screenshots
image

Additional context
It does not seem to occur when docking at normal stations and only seems to happen when docked at Fleet Carriers

EDMarketConnector-debug.log

@techno314 techno314 added bug unconfirmed An unconfirmed bug labels Aug 3, 2023
@Rixxan Rixxan added this to the 5.9.4 milestone Aug 4, 2023
@plscks
Copy link

plscks commented Aug 4, 2023

Can confirm this is an issue, I only started noticing it after ED:O Update 16 and updating EDMC to 5.9.2 this week. I haven't played much over the last three months or so but don't recall it giving errors in January-March.

  • Version: 5.9.2 - 5.9.3+16ffdffd
  • Game Version: Elite Dangerous: Odyssey - Live v4.0.0.1600
  • OS: Windows 11 Pro - 10.0.22631 Build 22631
  • OS Locale: English

Relevant logs:

2023-08-04 12:56:19.989 UTC - ERROR - 2836:19672:19672 companion.capi_single_query:833: Frontier CAPI Auth: GET /shipyard
Traceback (most recent call last):
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\companion.py", line 817, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\.env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard
2023-08-04 12:56:19.992 UTC - ERROR - 2836:19672:19672 companion.Session.dump:1123: Frontier CAPI Auth: https://companion.orerve.net/shipyard 500 Internal Server Error {"status":500,"message":"Internal Server Error","tag":"62qxcmd779gqw"}
2023-08-04 12:56:19.993 UTC - ERROR - 2836:19672:19672 companion.capi_single_query:846: Frontier CAPI: Misc. Error
Traceback (most recent call last):
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\companion.py", line 817, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\.env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard
2023-08-04 12:56:24.612 UTC - INFO - 2836:18488:18488 plugins.inara.new_worker:1586: sending 7 events for PLSCKS

Deauthorizing through https://user.frontierstore.net/ and relaunching EDMC to force authorization gets the following in the logs:

2023-08-04 13:05:10.789 UTC - INFO - 19120:1896:1896 companion.Auth.authorize:488: Frontier CAPI Auth: New token for "PLSCKS"
2023-08-04 13:05:33.010 UTC - INFO - 19120:14636:14636 plugins.inara.new_worker:1586: sending 6 events for PLSCKS
2023-08-04 13:05:49.267 UTC - ERROR - 19120:17424:17424 companion.capi_single_query:833: Frontier CAPI Auth: GET /shipyard
Traceback (most recent call last):
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\companion.py", line 817, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\.env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard
2023-08-04 13:05:49.270 UTC - ERROR - 19120:17424:17424 companion.Session.dump:1123: Frontier CAPI Auth: https://companion.orerve.net/shipyard 500 Internal Server Error {"status":500,"message":"Internal Server Error","tag":"3p46k0q26vpkl"}
2023-08-04 13:05:49.272 UTC - ERROR - 19120:17424:17424 companion.capi_single_query:846: Frontier CAPI: Misc. Error
Traceback (most recent call last):
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\companion.py", line 817, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\plsck\PythonProjects\EDMarketConnector\.env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard

@connylindquist
Copy link

I see this happening outside the carriers too. While in cruise for example.

@connylindquist
Copy link

2023-08-05 14:08:32.245 UTC - INFO - 13332:9220:9220 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:32.328 UTC - INFO - 5588:6872:6872 journal_lock.JournalLock._obtain_lock:106: Exception: Couldn't lock journal directory "C:\Users\Conny\Saved Games\Frontier Developments\Elite Dangerous", assuming another process running: PermissionError(13, 'Permission denied')
2023-08-05 14:08:32.357 UTC - INFO - 2948:10836:10836 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:32.482 UTC - INFO - 5588:6872:6872 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:32.495 UTC - INFO - 21936:2572:2572 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:32.750 UTC - INFO - 8816:21092:21092 journal_lock.JournalLock._obtain_lock:106: Exception: Couldn't lock journal directory "C:\Users\Conny\Saved Games\Frontier Developments\Elite Dangerous", assuming another process running: PermissionError(13, 'Permission denied')
2023-08-05 14:08:32.783 UTC - INFO - 12852:23084:23084 journal_lock.JournalLock._obtain_lock:106: Exception: Couldn't lock journal directory "C:\Users\Conny\Saved Games\Frontier Developments\Elite Dangerous", assuming another process running: PermissionError(13, 'Permission denied')
2023-08-05 14:08:32.821 UTC - INFO - 25196:22028:22028 journal_lock.JournalLock._obtain_lock:106: Exception: Couldn't lock journal directory "C:\Users\Conny\Saved Games\Frontier Developments\Elite Dangerous", assuming another process running: PermissionError(13, 'Permission denied')
2023-08-05 14:08:32.917 UTC - INFO - 8816:21092:21092 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:33.041 UTC - INFO - 12852:23084:23084 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:33.097 UTC - INFO - 25196:22028:22028 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.
2023-08-05 14:08:33.156 UTC - INFO - 3856:21628:21628 journal_lock.JournalLock._obtain_lock:106: Exception: Couldn't lock journal directory "C:\Users\Conny\Saved Games\Frontier Developments\Elite Dangerous", assuming another process running: PermissionError(13, 'Permission denied')
2023-08-05 14:08:33.293 UTC - INFO - 3856:21628:21628 EDMarketConnector.main:359: An EDMarketConnector.exe process was already running, exiting.

Rixxan added a commit to HullSeals/EDMarketConnector that referenced this issue Aug 6, 2023
@Rixxan
Copy link
Contributor

Rixxan commented Aug 6, 2023

I think the issue conny is having is a different error. Spinning that one off for a more immediate fix in #2057

Rixxan added a commit to HullSeals/EDMarketConnector that referenced this issue Aug 6, 2023
@connylindquist
Copy link

Yea, could have been another issue yes. I solved it temporary by using a flag to use local database (or what it was called) and then it worked fine.

@halvors
Copy link

halvors commented Aug 8, 2023

I can confirm this issue under Linux as well.

Could this be due to the fact that shipyard is not available for this carrier i am docking at? Just a though.

2023-08-08 11:18:55.672 UTC - ERROR - 388147:140486753433280:388151 companion.capi_single_query:838: Frontier CAPI Auth: GET /shipyard
Traceback (most recent call last):
  File "/home/halvors/bin/EDMarketConnector_bin/companion.py", line 822, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard
2023-08-08 11:18:55.673 UTC - ERROR - 388147:140486753433280:388151 companion.Session.dump:1128: Frontier CAPI Auth: https://companion.orerve.net/shipyard 500 Internal Server Error {"status":500,"message":"Internal Server Error","tag":"b1vzmq8bxtxc0"}
2023-08-08 11:18:55.674 UTC - ERROR - 388147:140486753433280:388151 companion.capi_single_query:851: Frontier CAPI: Misc. Error
Traceback (most recent call last):
  File "/home/halvors/bin/EDMarketConnector_bin/companion.py", line 822, in capi_single_query
    r.raise_for_status()  # Typically 403 "Forbidden" on token expiry
    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://companion.orerve.net/shipyard

@halvors
Copy link

halvors commented Aug 8, 2023

Yea, could have been another issue yes. I solved it temporary by using a flag to use local database (or what it was called) and then it worked fine.

What flag did you use to make this work?

@halvors
Copy link

halvors commented Aug 8, 2023

I think this issue is because fleet carrier not always offer all services like shipyard etc, if one fails it should still update market etc. Just tested this on another (not my) fleet carrier with shipyard enabled, then there was no errors

@connylindquist
Copy link

connylindquist commented Aug 8, 2023

"C:\Program Files (x86)\EDMarketConnector\EDMarketConnector.exe" --force-localserver-for-auth
I used that to start it and it worked fine.

Still see CAPI: misc.Error though (while on a carrier) but it works once I am ingame and fly about.

@plscks
Copy link

plscks commented Aug 8, 2023

I think this issue is because fleet carrier not always offer all services like shipyard etc, if one fails it should still update market etc. Just tested this on another (not my) fleet carrier with shipyard enabled, then there was no errors

Testing this on my own carrier with shipyard (but no ships for sale) and outfitting I still get the CAPI 500 error I reported while docked. It does not seem to error in other systems.

@Rixxan
Copy link
Contributor

Rixxan commented Aug 8, 2023

I think the CAPI 500 on Shipyard is indicative of something FDEV changed in U16. No ETA on a fix yet but we'll keep looking into it.

@techno314
Copy link
Author

It seems like this issue has been resolved (for me at least) I will keep this thread open just in case anyone else encounters this error again.

@Rixxan
Copy link
Contributor

Rixxan commented Aug 10, 2023

According to sources, the issue was resolved on FDEV side. Closing due to that.

@Rixxan Rixxan closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unconfirmed An unconfirmed bug
Projects
None yet
Development

No branches or pull requests

5 participants