Why does Sorbet error occur when reinstalling my dev app on version 19.1.0?

Why does Sorbet error occur when reinstalling my dev app on version 19.1.0?

Tom_Studio
Shopify Partner
5 0 0

Attempting to re-install my dev app, I foolishly uninstalled (knowing this is always a huge pain to debug on version bumps).

But for once a new error has appeared which was not seen before v19 releases.

Parameter 'scope': Expected type T.any(String, T::Array[String]), got type NilClass
Caller: /usr/local/bundle/gems/sorbet-runtime-0.5.9878/lib/types/private/methods/call_validation.rb:117
Definition: /usr/local/bundle/gems/shopify_api-10.0.2/lib/shopify_api/auth/session.rb:52

I rolled back to 18.1.1 - reinstalling the app works as expected, no issues.

 

In 19.0.1 the install flow throws up an error about cookies (why??), and doesn't make it past the Session vs Callback controllers infinite redirection bug. The shop record is not modified on reinstall (no access scopes or token is set).

 

In 18.1.1 the install flow works, the shop record is updated with a new token and access scopes, and the merchant is redirected into the app as expected. There is no error related to cookies.

 

It's very difficult to debug and understand why this happens, as the logs don't have anything useful other than pages responding 200 OK and then redirecting (via JS?) over and over.

Replies 0 (0)