Autotagger - can't access configure settings

Started by Joakimst, April 17, 2020, 10:36:47 AM

Previous topic - Next topic

Joakimst

Hi,

I have recently bought a license after using the trial version about two weeks.

When using the trial version I configured my autotagger app with the clarifai option but got the same error as in this post: https://www.photools.com/community/index.php?topic=9733.msg68856#msg68856

I tried several keys but I still got the same error message. I also tried with imagga but got an error message then as well (not the same). I did not bother then because it was not super important to me and I figured it might be a trial version limit or I would probablys solve it with a different key or AI service when I purchase.

Now when I have purchachesed the license and downloaded version 2020.4.6 the problem is more "severe".

When I try to run the app I don't get an error message but I get the message "Retrieving data from the remote service..." and a spinning wheel but nothing happens. I have to close the app by pressing the corner x.

However when I try to configure the settings nothing happens when I press the Configure button, the button gets "selected" (changes color) but it is like there is no link in the button, ergo I can't access any settings to try another service or key. (I've also noticed that Clarifai have deleted the "general" category which was my option in the trial version but now I can't access it to change the settings.)

Is there anything I can do to reset the app?


Mario

How strange.
Which error messages do you get, exactly?
Always include the IMatch log file (see log file) when you report problems.

Do you see any error messages or warnings in the The Output Panel when you run AutoTagger?

Tip: Run AutoTagger in your web browser for more analysis options:

0. Start IMatch
1. Start your browser (Google Chrome if you have, else FF or Edge will do)
2. Press F12 to open the developer tools. Make sure the "Console" tab is visible. It lists all error messages and warnings
3. Open the AutoTagger via this Url:

http://127.0.0.1:50519/imatch/apps/auto-tagger/index.html

Click on Configure or try to connect to the service. See any errors or warnings (usually in red) in the developer tools console?

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Joakimst

Hi,

Thank's for the swift reply I've followed the steps you mentioned and I'll try to answer.

1. I don't get any error message now, the app is just loading but nothing happens if I try to run it and when I try to press the configure button it doesn't open the settings.
2. I've run the app in google chrome and I'll get these error messages (the first two in red):

QuoteFailed to load resource: the server res/resources-sv-SE.json?_cb=1587303514443:1  responded with a status of 404 (Not Found)

Failed to load resource: the server res/resources-sv.json?_cb=1587303514447:1 Failed to load resource responded with a status of 404 (Not Found)

jQuery.Deferred exception: Cannot read property 'modelId' of undefined TypeError: Cannot read property 'modelId' of undefined
    at Object.<anonymous> (http://127.0.0.1:50519/imatch/apps/auto-tagger/src/service-clarifai.js:54:74)
    at e (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29453)
    at t (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29755) undefined
k.Deferred.exceptionHook @ jquery.min.js:2

DevTools failed to parse SourceMap: chrome-extension://nndknepjnldbdbepjfgmncbggmopgden/map/js/dm_content.js.map

DevTools failed to parse SourceMap: chrome-extension://nndknepjnldbdbepjfgmncbggmopgden/client/dist2/js/vendor.js.map

DevTools failed to parse SourceMap: chrome-extension://nndknepjnldbdbepjfgmncbggmopgden/client/dist2/js/dm_content_script.js.map


3. When I open the output panel and try to run the app I get this message:

QuoteWARN:jQuery.Deferred exception: Cannot read property 'modelId' of undefined
WARN:TypeError: Cannot read property 'modelId' of undefined
    at Object.<anonymous> (http://127.0.0.1:50519/imatch/apps/auto-tagger/src/service-clarifai.js:54:74)
    at e (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29453)
    at t (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29755)
WARN:undefined

4. I have attached the log file.

Mario

Seems like you haves somehow damaged the configuration of the app. That's bad.
Not sure how this can happen....

Do this:

Close IMatch.

Open the file C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\auto-tagger\src\app.js in Windows Notepad or your favorite text editor.
Search for loadConfig (line 401)

Change it like shown in the image attachment and save.

(Add the /* and */ to comment out the code that deals with the loaded settings).

Start IMatch and run AutoTagger. It comes up with the standard settings. Configure your service etc.
AutoTagger then restores the configuration.

Now, undo your change and save. Refresh AutoTagger by clicking into the Window and pressing Ctrl+F5.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Joakimst

Thank's.
That worked but now I have the same problem as before.
With Clarifai I get this error message (I have tried regenerate new API keys and waited days before trying a new one):

Quote{ "readyState": 4, "responseText": "{\"status\":{\"code\":11008,\"description\":\"Invalid API key or Invalid API key/application pair\",\"details\":\"Must provide app external ID in API authorizer\",\"req_id\":\"d08d241c5be6411e8c709c2d99be4071\"},\"outputs\":[]}", "responseJSON": { "status": { "code": 11008, "description": "Invalid API key or Invalid API key/application pair", "details": "Must provide app external ID in API authorizer", "req_id": "d08d241c5be6411e8c709c2d99be4071" }, "outputs": [] }, "status": 401, "statusText": "Unauthorized" }

And with Imagga I get the following error message:

Quote{ "readyState": 0, "status": 0, "statusText": "error" }

I've attached the log file.

Any idea of why it isn't working?


Jingo

Do you have the API key/app key combo setup correctly?  I know for Imagga, it needs to be in the form of App Key : Api Secret in order for the key to be valid...

Mario

The error message from the service is pretty clear. Your API key is wrong.
Don't add any extra blanks or spaces, use the format exactly as required by your service.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Xavi

Hi Mario,

We have the same problem, but in our Imatch we  don't have the auto-tagger folder. We have the 2019.8.4 version.

WARN:jQuery.Deferred exception: Cannot read property 'id' of undefined
WARN:TypeError: Cannot read property 'id' of undefined
    at Object.<anonymous> (http://127.0.0.1:50519/user/apb-publicacio/index.html?cb=878711386:77:61)
    at e (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29453)
    at t (http://127.0.0.1:50519/system/jquery/dist/jquery.min.js:2:29755)

Could you tell us, what can we do to resolve that?

Thanks

Jingo

Quote from: Xavi on April 23, 2021, 11:55:33 AM
Hi Mario,

We have the same problem, but in our Imatch we  don't have the auto-tagger folder. We have the 2019.8.4 version.

Thanks

autotagger was added to IMatch 2020 so that is why you do not have that folder.  However, your error has nothing to do with auto tagger.  What exactly isn't working that led you to look at the browser debugger?

Mario

The URL .../apb-publicacio/index.html is not from any of the apps included with IMatch.
It is in the "user" folder, which is the place for apps written by users or 3rd party developers.

I suggest you contact the author of that app for advice.



-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook