-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Upgrade to 2.1.4 breaks S3 fileAdapter #820
Comments
@michaelbina which version were you upgrading from? FWIW, I think I'm seeing similar behavior in adapters not getting picked up in the server config (which would cause them to default back to the |
I was on 2.1.3 |
Yeah, so looks like this issue is due to the changes made by adding Since the cc @flovilmart |
Looks like a quick and dirty fix is to change 35-37 to return the appropriate object if we're an object:
Not being the author, I don't have a good sense of whether or not this will break other adapters (which I assume are just objects), but the automatic behavior of "I got an object, immediately swap it out and try for a function" doesn't seem right to me (plus, when I swap it, the tests pass again!). Doing that, however, seems to throw a wrench in the gears, causing Push to have problems:
|
Same issue here. Looking for a solution.. |
With this new version, how does one load it into the Json config to use the S3adaptor? Im using ecosystem.json file that starts on pm2.
But adding Files adaptor like this seems to break the server. Any advise on how to load the S3 adaptor and values on this new version 2.1.4? |
@mcdonamp you are right, we expect the adapters to fail loading when the parameters are trying to get constructed with the wrong options. Which is not the case obviously. |
I'm guessing I won't be able to get the fix to this until 2.1.5? I tried pointing to master in my package.json but then my server was completely broken, so I downgraded back to 2.1.3 for now. Is there a better way to point to the latest than:
|
That's the correct syntax for Git/GitHub URLs (per NPM docs). That said, I would just use |
I just upgraded my server to 2.1.4 and my fileAdapter seems to have broken. The files are now being pointed to my own server endpoint instead of S3.
My server config looks like:
I removed the fileKey config just in case that was interfering and that didn't fix the problem. Any insight into why this may have broken?
The text was updated successfully, but these errors were encountered: