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

Sandboxログイン時にエラーが発生しました。[Error] UNSUPPORTED_API_VERSION: Invalid Api version specified on URL #30

Open
mcho71 opened this issue May 26, 2023 · 1 comment

Comments

@mcho71
Copy link
Contributor

mcho71 commented May 26, 2023

概要

Sandboxへログインする際にエラーが発生しました。

sf:UNSUPPORTED_API_VERSION: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL
    at a.getError (https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:17:96123)
    at https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:17:94479
    at https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:19:3016
    at https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:19:3044
    at MutationObserver.s (https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:17:176951)
    at t.$$lwcObserverCallbackWrapper$$ (https://lwc-soql-builder.github.io/lwc-soql-builder/2.app.js:17:294805)
_loginCallback @ app.js:1

一時的な対処

セッションストレージのlsb.apiVersion58.0から56.0に変更したところ、エラーとならずに動きました。

image
@mcho71 mcho71 changed the title ]UNSUPPORTED_API_VERSION: Invalid Api version specified on URL Sandboxログイン時にエラーが発生しました。[Error] UNSUPPORTED_API_VERSION: Invalid Api version specified on URL May 26, 2023
@atskimura
Copy link
Contributor

報告ありがとうございます。
一回APIバージョンをセッションストレージにセットしたら再取得しないコードになってしまっていました。
そのためセッションストレージが空の状態でSummer '23の組織に接続してから、別のSpring '23の組織に接続すると、この現象が発生しました。
ログイン時にAPIバージョンを再取得するようにするのが正解でした。どこかのタイミングで修正したいと思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants