Page 1 of 1

cAPI news (market prices, outfitting)

Posted: Tue Oct 03, 2017 7:19 pm
by Cometborne
Most of you will have noticed that the price and outfitting information on the various third party sites had gotten increasingly stale after the 2.4 update last week. All these sites depend on data pulled via the "Companion API" with tools such as EDMC, EDDI, ED Discovery, and probably others. The 2.4 update broke the authentication mechanism. Today's patch notes contain the following line:

Fixed Companion API authentication problems


Unfortunately, testing done immediately after the update confirmed that the cAPI was still broken. After some time, it started working, at least sometimes. The situation has grown better over the course of the day, but it is still incredibly flaky. Patience is required.

What is also required are updates to the tools using the CAPI because FDev also changed its structure and the data values. At the moment, only EDMC version 2.4.3 looks to be working correctly. At least, as far as updating price, outfitting, and shipyard information is concerned. Export of ship stats including engineer modifications only works for the current ship, and only with ED Shipyard. Coriolis will follow during the weekend. Inactive ships probably never.

TL;DR: Update EDMC to 2.4.3. Be prepared for problems.

Re: cAPI news (market prices, outfitting)

Posted: Tue Oct 03, 2017 7:46 pm
by Relix Typhon
I'm still getting the invalid credentials error on 2.4.3. When I click my ship, nothing happens.

Re: cAPI news (market prices, outfitting)

Posted: Tue Oct 03, 2017 7:57 pm
by Cometborne
Try the following:
  1. While E:D is running and you are docked somewhere, shut down EDMC.
  2. Open an explorer window, click into the location bar, type

    Code: Select all

    %localappdata%\EDMarketConnector
    and hit enter
  3. This directory contains two files named cookies-<various letters and digts>.txt and replay.jsonl
  4. Delete both files
  5. Start EDMC again
  6. Enter the confirmation code from the mail from FD, hit OK, and pray

Re: cAPI news (market prices, outfitting)

Posted: Tue Oct 03, 2017 8:27 pm
by Relix Typhon
Just followed the instructions.

For feedback:
Getting a "Frontier server is down" error now. System and station works (did before as well) and when clicking update I now get the cooldown timer but can confirm this isn't going to EDDB. When I click ship, nothing happens and I get the invalid credentials like before.

EDIT: oh and I have been getting a EDSM Commander name/API Key not found error for a while now even though it is correct.

Re: cAPI news (market prices, outfitting)

Posted: Tue Oct 03, 2017 9:49 pm
by JohnLuke
Thanks for the update, Comet!

Re: cAPI news (market prices, outfitting)

Posted: Wed Oct 04, 2017 7:16 am
by Cometborne
Quick update: It is still flaky as hell. For about half the people, it does not work at all despite doing everything but human sacrifice. For the other half, it works as long as you dock often enough. If you have more than 10 minutes between docking, you get a credentials error. Restarting EDMC fixes that and gets the price/outfitting/shipyard update out.

Right now, only about 870 of the 61,737 stations on EDDB have had price updates after 2.4, which puts a spanner in the works for the trade CGs.

Re: cAPI news (market prices, outfitting)

Posted: Wed Oct 04, 2017 8:33 am
by Relix Typhon
Cometborne wrote:Quick update: It is still flaky as hell. For about half the people, it does not work at all despite doing everything but human sacrifice.

This is not an issue, if you think it'll work?

:D