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

TypeError: i.issueProvider is undefined. Error while Importing backup file to the web app, it was working normally yesterday. but today that error appeared. #3892

Open
Adamantt777 opened this issue Jan 13, 2025 · 2 comments
Assignees

Comments

@Adamantt777
Copy link

Adamantt777 commented Jan 13, 2025

Steps to Reproduce

  1. Importing the backup file to the web app super productivity. The backup was created with the desktop app, and this was working normally the days before. I used to import to the web app and everything was working fine.
    2.The web app update itself, and then the error while importing the backup file happened.
    3.Something went wrong with the new update that causes that error.
    4.I use a different desktop version on windows 10 as the main, that works well, but the web app and android app are updated and I don't like the new changes. So I use the web app with a secondary dropbox account, and I was importing the file from desktop to the web app, to make possible to have the backup file data in the android as it's synced with the web app.
    It was working normally until today when the importing file shows that error.

Please allow the importing backup from previous super productivity desktop version 9.0.7 to the web app updated version. Thank you.

Error Log (Desktop only)

Console Output

Meta Info

META: SP11.1.2 __ Browser – en-US – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0

Stacktrace

h$e@https://app.super-productivity.com/main-SJHKELZT.js:136:10794
t0@https://app.super-productivity.com/main-SJHKELZT.js:136:9956
importCompleteSyncData/K0<@https://app.super-productivity.com/main-SJHKELZT.js:295:3254
n@https://app.super-productivity.com/chunk-HMYXOI6C.js:1:1816
invoke@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:42522
onInvoke@https://app.super-productivity.com/main-SJHKELZT.js:79:25593
invoke@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:42462
run@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:37775
r_/</o/<@https://app.super-productivity.com/polyfills-VRABRW6Y.js:2:554
invokeTask@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:43147
onInvokeTask@https://app.super-productivity.com/main-SJHKELZT.js:79:25409
invokeTask@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:43068
runTask@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:38417
re@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:45190
invokeTask@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:44250
P@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:51309
k@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:51611
G@https://app.super-productivity.com/polyfills-VRABRW6Y.js:1:51870

Actions Before Error

1736733848648: [FocusMode] Set focus session elapsed time 
1736733859632: [Persistence] Save to DB (15) 
1736733859682: [SP_ALL] Load(import) all data 
1736733859682: [Idle] Reset 
1736733859682: [SP_ALL] All Data was loaded 
1736733859749: [SP_ALL] Load(import) all data 
1736733859749: [Idle] Reset 
1736733859749: [Persistence] Remove from DB 
1736733877716: [WorkContext] Set Active Work Context 
1736733877766: [Task] SetSelectedTask 
1736733877916: [Bookmark] Load Bookmark State 
1736733877916: [Project] Load Project related Data Success 
1736733877916: [Improvement] Clear Hidden Improvements 
1736733877916: [Improvement] Delete multiple Improvements 
1736733884783: [WorkContext] Set Active Work Context 
1736733884799: [Task] SetSelectedTask 
1736733897733: [Persistence] Save to DB 
1736733966667: [FocusMode] Set focus session elapsed time 
1736733971534: [SP_ALL] Load(import) all data 
1736733971534: [Idle] Reset 
1736733971534: [SP_ALL] All Data was loaded 
1736734105120: [Persistence] Save to DB (15) 
1736734105170: [SP_ALL] Load(import) all data 
1736734105170: [Idle] Reset 
1736734105170: [Persistence] Remove from DB 
1736734128937: [Persistence] Save to DB (16) 
1736734128987: [SP_ALL] Load(import) all data 
1736734128987: [Idle] Reset 
1736734128987: [Persistence] Remove from DB 
1736734142188: [Persistence] Save to DB
Copy link

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

@Adamantt777 Adamantt777 changed the title TypeError: i.issueProvider is undefined. While Importing backup to web app error, it was working normally yesterday. but today that error appeared. TypeError: i.issueProvider is undefined. Error while Importing backup file to the web app, it was working normally yesterday. but today that error appeared. Jan 13, 2025
@johannesjo johannesjo self-assigned this Jan 17, 2025
@vhda
Copy link

vhda commented Feb 11, 2025

For those affected by this problem, which resulted from the fact that SuperProductivity was a period of time without key-based logins in Jira and you tried to backup and restore settings to fix it but just made things worse.
What's happening is that when creating the new connection settings they were issued a new ID, resulting in a mismatch between the original ID and the new one in existing issues.

To workaround this, export your settings and reformat the JSON to make it human readable. You're looking for this section:

    "issueProvider": {
        "ids": [
            "xxx",
            "yyy"
        ],
        "entities": {

Within entities you will find more details of each of those ids, you can use that to identify the ID you're looking for.
Now you need to search for:

                "issueProviderId": "zzz",

You will have as many "zzz" as Jira connections you had setup before. So identify each per its Jira ID and replace with the new ID using whatever text editor you prefer.
Re-import and you should be good to go!

Hope this helps! Cheers everyone :)

@johannesjo johannesjo added the bug label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants