Forums » Bugs & Problems Search

Catalog update 'unknown error' when using fp_code dictionary (version + code) New Reply

Author Post
Posts: 7
Registered: Feb 01, 2012

Hi all,

I am having some issues with the catalog/update API call. It seems that using a dictionary for the fp_code (fingerprint code), always results in a unknown error. Using it without a dictionary worked, however we need to specify the correct version.

The following curl calls reproduce the issue. Note that the catalog name needs to be inserted, the CATALOG_ID, and the FINGERPRINT_CODE.

Any help would be greatly appreciated!

Create catalog:

curl -F "api_key=N6E4NIOVYMTHNDM8J" -F "format=json" -F "type=song" -F "name=*CATALOG_NAME*" "http://developer.echonest.com/api/v4/catalog/create"

Execute update, resulting in unknown error:

curl -X POST "http://developer.echonest.com/api/v4/catalog/update" -F "api_key=N6E4NIOVYMTHNDM8J" -F "data_type=json" -F "format=json" -F "id=*CATALOG_ID*" -F "data=@req.json"

req.json:

[
    {
        "action":"update",
        "item":
            {
                "item_id": "0CF07A178DBF78F7",
                "fp_code" : { "code" : "*FINGERPRINT_CODE*", "version" : 4.12 }
            }
    }
]
Posts: 40
Registered: Sep 08, 2009

Hi projectm,

Good catch! It looks like we haven't yet updated the catalog/update call to deal with multiple fp code versions. I have added this to our queue and we will look into a fix. In the meantime I think your workarounds are either to use the raw codestring, or use the song/identify call with a specific version and then use the resulting song_id as the item to resolve in a taste profile.

Tyler

Posts: 7
Registered: Feb 01, 2012

Hi Tyler,

thanks for the response! Is there any way for me to follow the status of this issue, or can you give some ETA? Are we talking days, weeks, months?

Unfortunately I am unable to use the raw string. It turns out that my generated fingerprints are not recognized if the wrong version is used (I use version 4.11). The other option will work, but is unacceptable.

This API call is highly important to my app. I use the catalog to identify songs in a batch. The app runs on mobile devices, so a round trip to the server for each song takes too long.

I'm looking forward to your response.

Jeffrey

Posts: 35
Registered: Dec 18, 2011

Hi Projectm, I'm also trying to figure it out how the catalog update works. Till now I've just understood that if you use ENMFP as fingerprinting, this kind of block works.

<pre><code>[ { "action": "update", "item": { "artist_id":"ARLPTUF12B3B3528F0", "favorite": true, "item_id":"TRAFMFS138C96B7811", "fp_code": {"version": 3.16,"code": "eJwtU4uxBCEIa0lQPpaDKP2X8MK-u5nLugFiRHaM_x___mMmYDXIAmhzHoDtgGjuNHTGuI2FHCIsiD9YDQjQRBktlJEgQtqcNbQUtRSdDmRzr7nKnwumDx6ga1l7ZdDjdsEO5OjA6Yrbq9vcgxcuKM_vLISK2SVzNSdQma0yW2CeTjnNXZTN1ykFqdWbL2lQJC9vbiNvRcNpLht63_UaqvvVPRHGq3QTRbGH7A5Ev34tTWwkhYASVsofQFQFetoVarDRi6G7o21Se6NuAQAy1j2KrTtXzCQOCWOGhxWbNXyD7IQI3IUjOxR5xpQjuF5RuuHcp04aBb-KenTh95zH-5hIMOKh96IJgfg-kyeajWaxprdOxNgH5KoIZ0UdzYcd44TmKuhFPJCWJhr9lCYpDE9MQaXua0k3ZoGcnKZeSVV5QKJLVoUxikd2q8YMPi410ZDn8eZEUs6ghfExkOIybFL7UJCsBR_i8L0PfOBm058W-jCg277Rh1njECFkOA_ngm83nAekm9LrQ6bSdaNjbCCJRG_uRDOWyGlqxCUZC1eafNgejc7D9ZTjKtfC3YJ8TASSdpo7pvGRGkgMx3SBHsG3P6J1Bnzj_Fc48X1kkMk6c9dhlzupnj2QDw2rXZ_eofb96X2-707a9fkee6vhORFT2ZiRhYK9UYeD4wPrOEge3vGES4z73izXl4K0t6FIzLwr5FKkO87D5npAUpz9QI4ijWc-A6MmcabZCy8aWvdiRHB_dMp63nB_Wn-fBSAS"}, "song_name": "Is Anyone Up", "release": "Bury Me In Vegas", "genre": "Hardcore" } } ] </code></pre>

When I'm using Echoprint fingerprinting I always have to cut away the version in order that it works.

<pre><code> [ { "action": "update", "item": { "artist_id":"ARLPTUF12B3B3528F0", "favorite": true, "item_id":"TRAFMFS138C96B7811", "fp_code" : "eJzFvQtuNLkSnLul4ptcDp_7X8L9gvK17AGYgvHD8AFOzIyk7q5iZUZGkEn2931f_Azw3YKSLBjHAPc1C1K0oB0LdjPAh2BBcxaMbMEaFp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DTRaYM_mdgmbACQZomdeAkiyoJtheQw_5DSKtNxRnwKI2GDDyG74_-mRUSN9gTwT_i1_4lx4b9Vq84S4FPMHusZFQeoOG5A3mPL9vwYK-DQiSq2-Q8H-DQuAJZmRgOKoFJxuQNNhvsN1E6hZo7uUNslBPKLLIbwjFgKpFszdIcr5Bcy9v0CrhG9TV8IQWgwWlG6BZZgNGsWAOC3YyYGjS_Q29GzB9siA2C4ozYGkK5A3RBNsR6KafsDXcb6gmtGXBbdJ5gjVhg2kIFigh3lCTBT1YoEWkFzhYy4J_cRO1WbC6AX9p_s", "song_name": "Is Anyone Up", "release": "Bury Me In Vegas", "genre": "Hardcore" } } ]</code></pre>

Hope this can help you

Reply to this Thread

You must log in to post a reply.