-
Notifications
You must be signed in to change notification settings - Fork 13
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
getAccountInfo()
Fails In 0.1.199 and Above
#219
Comments
@gilzow could you please follow up here, and maybe we can figure out what's wrong here, and why it's not being caught by automated tests? Who would be the responsible person to assign this to? |
0.1.199 was released almost a year ago. @reynoldsalec have you tried updating the client to a more recent version? Is the error still present with a newer version of the client? |
@gilzow yep, currently packaged version since the last release (December 12th) was The reason I brought up |
Gotcha. Just wanted to clarify. @tlattimore / @shakaman - any ideas on what might be causing the issue above? |
I will investigate this further but I can confirm the issue was introduced with the isomorphic-fetch bump in |
@reynoldsalec regarding,
Is it reasonable to assume it is just at version |
Exactly @tlattimore, that was the last time Good to hear RE: Do you have any plans to move away from |
Migrate to cross-fetch polyfill to eliminate the issues we are seeing with isomorphic-fetch.
I have started working this branch to test moving away from it |
Awesome, thanks @tlattimore, that is huge. |
@tlattimore has there been any updates to your branch you're working on? This issue is a pretty substantial road block for platform.sh customers who are using lando for their local development. |
Migrate to cross-fetch polyfill to eliminate the issues we are seeing with isomorphic-fetch.
Hey @gilzow, this should now be resolved with |
@tlattimore PERFECT! Thank you! |
Awesome @tlattimore, I'll try updating this later today or tomorrow, thanks for the great work! |
I think this resolved the issue...was still having a problem when trying with my account, but after refreshing my token it worked perfectly. Relevant tests seem to pass. Going to roll this into our next Lando release, thanks again @tlattimore for your help and @gilzow + @rfay! |
@gilzow and I have been trying to resolve a bug with the Platform.sh Lando integration, where upon running a
lando init
, we are unable to retrieve the user's project list via thegetAccountInfo()
function provided byplatformsh-client-js
.Specifically the line that produces the ultimate error in Lando is https://github.com/lando/platformsh/blob/main/recipes/platformsh/init.js#L35
While trying different versions of
platformsh-client
, I did notice a change in behavior between0.1.198
and0.1.199
ofplatformsh-client-js
; both versions fail to produce the project list, but on0.1.198
no explicit error is produced (the process just seems to hang). It looks like the underlying function poweringgetAccountInfo()
changed, as did the version ofisomorphic-fetch
...perhaps one of these changes might have produced this error? v0.1.198...v0.1.199Hoping that your finely tuned eyes notice something I haven't, happy to jump on a screenshare if that's easier, should be able to ping me via Slack if you join the
#lando-platformsh
shared channel.The text was updated successfully, but these errors were encountered: