Git Product home page Git Product logo

Comments (24)

IlyaRice avatar IlyaRice commented on August 16, 2024 1

If needed, I have dozens of accounts. I am ready to provide them for the common cause.

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

It still works on my side. Can you try export any format and take a screenshot of console?

from chatgpt-exporter.

asgeirtj avatar asgeirtj commented on August 16, 2024

Sure

image

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

Are you using team plan?

from chatgpt-exporter.

asgeirtj avatar asgeirtj commented on August 16, 2024

No, personal

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

got it. I will check further.

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

I tested some things.
Team account - not working.
Personal paid account - not working.
Free account from Chrome Incognito mode - not working.

Issue persists with all JSON formats, Markdown, HTML, Export All.
Screenshot export is working.

Here some details:
Initial extension errors after loading the page
Markdown export error
JSON export error
Export All error

P.S. I'm glad to help with resolving this issue. Do you have telegram messenger?

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

oh wow, thanks for the detailed report. I suspect they are ab testing some changes that haven't been applied to my account.

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

wait I can reproduce it now.

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

May I know your OS and browser? It works on my window 11 + chrome latest. But failed on Mac + Chrome latest.

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

It works ok on my Mac now... so confusing...

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

I have the same: window 11 + chrome latest.
And what is the most strange, that the extension is working today on some accounts.
It still sends some error in console, but all functions are working properly right now.

Tested json, md, html and "export all" again:
Free acc - all works
Team acc - all works
Plus acc - nothing works

The thing is that team and plus are the same acc, but different workspaces.
I have some insights on cause of issue, but I'm not proficient enough to test and even to locate it right.

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

I'm using Plus account. 🤔

I feel this is either an authentication issue or Cloudflare robot detection blocking. You can also share other findings here, we can find out the root cause together.

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

About errors with a Plus account on an account with two workspaces:

The most curious thing is that when I open the "Export all" window, the list of dialogues from the Team workspace is loaded, despite the fact that I have switched to my personal workspace.
Team workspace "Export All" dialogues
Personal workspace "Export All" dialogues
Before that, the extension loaded the correct list of dialogs for export in each workspace.

It looks like they've changed something in the principle of authentication and dialog storage in accounts with two workspaces. Because an attempt to load JSON returns a
/different error (404) to the console than the previous time.
Trying export JSON in personal workspace

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

May I know how you switch between team and personal account? will it refresh after switching?

The extension is still assuming you are on the team plan, so it brings the team token to the API. I guess the server don't want to leak if this id exists or not for security reasons, so it returns a 404.

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

May I know how you switch between team and personal account? will it refresh after switching?

Here is how

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

I turned on network analysis and here what I've found:

Team workspace First arrow - conversation loaded when I opened it on page. Second arrow - successful conversation export

image

Personal workspace First arrow - conversation loaded when I opened it on page. Second arrow - unsuccessful conversation export with 404 error

image

I've analyzed difference between those requests:

Team workspace request headers When chat loading on the page, request have "Chatgpt-Account-Id: 5ea18f8d-9e19-4b32-980c-14777052ec60" header. Your script export works in this case, because it has identical request (with "Chatgpt-Account-Id: 5ea18f8d-9e19-4b32-980c-14777052ec60" header)

image

Personal workspace request headers When chat loading on the page, request have not "Chatgpt-Account-Id:" header. Your script export don't works in this case. Because it is still has header "Chatgpt-Account-Id: 5ea18f8d-9e19-4b32-980c-14777052ec60" in request.

image

Also I think this thing is new It contains info about both workspaces. Plan, feature enabled, etc. My hypothesis is that such separation of workspaces into two different IDs came with latest update. And before that was single ID and different workspace separation logic.

image

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

the v4-2023-04-27 request is where the extension gets your Chatgpt-Account-Id. We alr integrated it.

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

Oh, I've thought it was new because mis saw 2024 instead of 2023 year 😅
I also thought: oh, it's so strange that this date is further than current.
As I said, I'm pretty new to all of this.

But what about extension misusing Chatgpt-Account-Id in one of workspaces?
Does current extension logic takes into account that fact that there is two Chatgpt-Account-Id in v4-2023-04-27 request?

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

It's possible that the extension use the Chatgpt-Account-Id wrongly because I'm not that familiar with how it works. I added the support purely based on public information and some code snippets on github.

What do you mean two Chatgpt-Account-Id ? You got two?

If so, can you share the content here? the accounts part with token masked.

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024
Do you need this content?
{
    "accounts": {
        "5ea18f8d-9e19-xxxx-xxxx-14777052ec60": {
            "account": {
                "account_user_role": "account-owner",
                "account_user_id": "user-3qbcXxxxxxxxy6VutWUNfdz__5ea18f8d-9e19-xxxx-xxxx-14777052ec60",
                "processor": {
                    "a001": {
                        "has_customer_object": true
                    },
                    "b001": {
                        "has_transaction_history": false
                    },
                    "c001": {
                        "has_transaction_history": false
                    }
                },
                "account_id": "5ea18f8d-9e19-xxxx-xxxx-14777052ec60",
                "organization_id": "org-nGA6vlYRQOxxxxx6uP8meS2ZGD",
                "is_most_recent_expired_subscription_gratis": false,
                "has_previously_paid_subscription": true,
                "name": "Ricery",
                "profile_picture_id": null,
                "profile_picture_url": null,
                "structure": "workspace",
                "plan_type": "team",
                "is_deactivated": false,
                "promo_data": {}
            },
            "features": [
                "arkose_enabled",
                "arkose_enabled_for_subscription",
                "beta_features",
                "bizmo_settings",
                "breeze_available",
                "browsing_available",
                "chat_preferences_available",
                "chatgpt_ios_attest",
                "chatgpt_team_plan",
                "code_interpreter_available",
                "d3_controls",
                "d3_editor",
                "d3_editor_gpts",
                "disable_model_upsell",
                "disable_upgrade_ui",
                "gizmo_reviews",
                "gizmo_support_emails",
                "invite_referral",
                "memory_history_enabled",
                "memory_model_override",
                "memory_model_override_check",
                "mfa",
                "model_ab_use_v2",
                "model_switcher",
                "new_plugin_oauth_endpoint",
                "paragen_mainline_alternative",
                "plugins_available",
                "privacy_policy_nov_2023",
                "shareable_links",
                "starter_prompts",
                "system_message2",
                "targeted_replies",
                "thumbs_down_only",
                "use_o11y",
                "user_settings_announcements",
                "workspace_gpt_custom_actions",
                "workspace_share_links"
            ],
            "entitlement": {
                "subscription_id": "345abe93-cda5-xxxx-xxxx-94fb97656275",
                "has_active_subscription": true,
                "subscription_plan": "chatgptteamplan",
                "expires_at": "2024-05-14T19:44:12+00:00",
                "billing_period": "monthly"
            },
            "last_active_subscription": {
                "subscription_id": "345abe93-cda5-xxxx-xxxx-94fb97656275",
                "purchase_origin_platform": "chatgpt_web",
                "will_renew": true
            },
            "is_eligible_for_yearly_plus_subscription": false
        },
        "0d1b6707-3119-xxxx-xxxx-596c869db2cd": {
            "account": {
                "account_user_role": "account-owner",
                "account_user_id": "user-3qbcXxxxxxxxy6VutWUNfdz__0d1b6707-3119-xxxx-xxxx-596c869db2cd",
                "processor": {
                    "a001": {
                        "has_customer_object": true
                    },
                    "b001": {
                        "has_transaction_history": false
                    },
                    "c001": {
                        "has_transaction_history": false
                    }
                },
                "account_id": "0d1b6707-3119-xxxx-xxxx-596c869db2cd",
                "organization_id": null,
                "is_most_recent_expired_subscription_gratis": false,
                "has_previously_paid_subscription": true,
                "name": null,
                "profile_picture_id": null,
                "profile_picture_url": null,
                "structure": "personal",
                "plan_type": "free",
                "is_deactivated": false,
                "promo_data": {}
            },
            "features": [
                "arkose_enabled",
                "arkose_enabled_for_subscription",
                "beta_features",
                "bizmo_settings",
                "breeze_available",
                "browsing_available",
                "chat_preferences_available",
                "chatgpt_ios_attest",
                "chatgpt_team_plan",
                "code_interpreter_available",
                "d3_controls",
                "d3_editor",
                "d3_editor_gpts",
                "dalle_3",
                "gizmo_reviews",
                "gizmo_support_emails",
                "invite_referral",
                "memory_history_enabled",
                "memory_model_override",
                "memory_model_override_check",
                "mfa",
                "model_ab_use_v2",
                "model_switcher",
                "new_plugin_oauth_endpoint",
                "paragen_mainline_alternative",
                "plugins_available",
                "privacy_policy_nov_2023",
                "shareable_links",
                "starter_prompts",
                "targeted_replies",
                "thumbs_down_only",
                "use_o11y",
                "user_settings_announcements"
            ],
            "entitlement": {
                "subscription_id": "e5833ba0-ec68-xxxx-xxxx-a221eb5e6c37",
                "has_active_subscription": false,
                "subscription_plan": "chatgptplusplan",
                "expires_at": "2024-01-29T20:56:58+00:00",
                "billing_period": null
            },
            "last_active_subscription": {
                "subscription_id": "e5833ba0-ec68-xxxx-xxxx-a221eb5e6c37",
                "purchase_origin_platform": "chatgpt_web",
                "will_renew": false
            },
            "is_eligible_for_yearly_plus_subscription": false
        },
        "default": {
            "account": {
                "account_user_role": "account-owner",
                "account_user_id": "user-3qbcXxxxxxxxy6VutWUNfdz__0d1b6707-3119-xxxx-xxxx-596c869db2cd",
                "processor": {
                    "a001": {
                        "has_customer_object": true
                    },
                    "b001": {
                        "has_transaction_history": false
                    },
                    "c001": {
                        "has_transaction_history": false
                    }
                },
                "account_id": "0d1b6707-3119-xxxx-xxxx-596c869db2cd",
                "organization_id": null,
                "is_most_recent_expired_subscription_gratis": false,
                "has_previously_paid_subscription": true,
                "name": null,
                "profile_picture_id": null,
                "profile_picture_url": null,
                "structure": "personal",
                "plan_type": "free",
                "is_deactivated": false,
                "promo_data": {}
            },
            "features": [
                "arkose_enabled",
                "arkose_enabled_for_subscription",
                "beta_features",
                "bizmo_settings",
                "breeze_available",
                "browsing_available",
                "chat_preferences_available",
                "chatgpt_ios_attest",
                "chatgpt_team_plan",
                "code_interpreter_available",
                "d3_controls",
                "d3_editor",
                "d3_editor_gpts",
                "dalle_3",
                "gizmo_reviews",
                "gizmo_support_emails",
                "invite_referral",
                "memory_history_enabled",
                "memory_model_override",
                "memory_model_override_check",
                "mfa",
                "model_ab_use_v2",
                "model_switcher",
                "new_plugin_oauth_endpoint",
                "paragen_mainline_alternative",
                "plugins_available",
                "privacy_policy_nov_2023",
                "shareable_links",
                "starter_prompts",
                "targeted_replies",
                "thumbs_down_only",
                "use_o11y",
                "user_settings_announcements"
            ],
            "entitlement": {
                "subscription_id": "e5833ba0-ec68-xxxx-xxxx-a221eb5e6c37",
                "has_active_subscription": false,
                "subscription_plan": "chatgptplusplan",
                "expires_at": "2024-01-29T20:56:58+00:00",
                "billing_period": null
            },
            "last_active_subscription": {
                "subscription_id": "e5833ba0-ec68-xxxx-xxxx-a221eb5e6c37",
                "purchase_origin_platform": "chatgpt_web",
                "will_renew": false
            },
            "is_eligible_for_yearly_plus_subscription": false
        }
    },
    "account_ordering": [
        "5ea18f8d-9e19-xxxx-xxxx-14777052ec60",
        "0d1b6707-3119-xxxx-xxxx-596c869db2cd"
    ]
}

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

Sorry for being late on this. I just checked the source code of chatgpt to see how it works.

tldr; You have to read the current workspace from the cookie _account.

Please help me test if it works 🙏

from chatgpt-exporter.

IlyaRice avatar IlyaRice commented on August 16, 2024

Yeah, works like a charm. Thank you!

from chatgpt-exporter.

pionxzh avatar pionxzh commented on August 16, 2024

Nice~

from chatgpt-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.