Comments (16)
@UrsBoller I am checking this.
from aio-lib-files.
Fantastic @UrsBoller , we're glad to know that you're unblocked!
I will close this issue now, and we will work on the dependency fix at aio-sdk
level.
You can follow the resolution of this one by subscribing to this PR: adobe/aio-sdk#13.
from aio-lib-files.
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-937
from aio-lib-files.
Thanks for reporting the issue, @duynguyen ! We'll look into that.
As a temporary workaround, I'd recommend using the out-of-the-box storage.
from aio-lib-files.
Relates to #52.
from aio-lib-files.
@moritzraho I just tested the new version 1.2.3 and I still have an issue with writing files (read works as expected). Anything I missed to get the fix up and running?
@duynguyen FYI
Edit: I still get the following error message on "get": [FilesLib:ERROR_BAD_CREDENTIALS] cannot access cloud storage provider
, make sure your credentials are valid
from aio-lib-files.
Reopening the issue while we are investigating further.
from aio-lib-files.
We are debugging this, and looks like a very odd issue with azure write operation when file lib is imported a certain way.
@UrsBoller as a workaround can you try importing the file lib directly instead of using the aio-sdk
? We found that when the lib is imported directly the azure didn't throw the bad credentials error. Here is sample code for import
const {init, FilePermissions } = require('@adobe/aio-lib-files')
const files = await init({
azure: {
storageAccount: '',
storageAccessKey: '',
containerName: '',
}})
... //any file operations here
from aio-lib-files.
Hi @UrsBoller , we'll wait on your feedback related to @sandeep-paliwal 's proposal. This should do the job for your use-case, while we will work on the root cause, which pretty seems to be a dependency conflict.
from aio-lib-files.
@sandeep-paliwal / @meryllblanchet sorry for delay, was on a outdoor trip the whole day. but just tested the fix with changing the init and it does not change anything, still the same error message ...
from aio-lib-files.
@UrsBoller do you have any remaining require('@adobe/aio-sdk')
in your action? For example in order to use another library. Then I'd suggest replacing it in favor of a direct require to the library you want to use.
from aio-lib-files.
@meryllblanchet yes, I'm using the "CORE" for the logger ...
EDIT: will try to rebuid the action without the logger, just a min ...
from aio-lib-files.
@UrsBoller or try const logger = require('@adobe/aio-lib-core-logging')('Your App')
from aio-lib-files.
@meryllblanchet you are awesome! without the logger (aio-sdk) it works now! will try to change the logger later on, but this is no big issue (since I have my own logger anyway). thanks a lot, this fix helps!
from aio-lib-files.
@meryllblanchet / @sandeep-paliwal : just FYI - I'm still having issues even with the workaround and after the fix with the aio-sdk. after hours of testing what is the cause of the failure I narrowed down the root cause to "aio-lib-analytics". As soon as I include analytics, the aio-lib-files failes again. I couldn't figure out what exactly happens, I just included the library and executed the function "getCurrentUser()". I found another way to solve my issue (without using aio-lib-analytics), so fixed for me.
Therefore, I won't raise a bug and wait if the issue happens again - waiting for more aio actions to build where I will use the aio-lib-analytics heavely - if I see the error again, I will raise a bug...
from aio-lib-files.
@UrsBoller thank you for confirming this issue to us, which is ultimately the same than the one that you observed when using aio-sdk
and a custom storage for the aio-lib-files
.
To fix it, we will have to update the swagger client dependency in every SDK library and make sure it doesn't fail when the "bring your own storage" feature of the aio-lib-files
is being used.
cc @sandeep-paliwal @moritzraho for more details.
from aio-lib-files.
Related Issues (20)
- update node engine support to 12 or greater HOT 2
- test failures with new [email protected] dependency HOT 1
- codecov in Github Action needs to be updated HOT 1
- Typescript error
- Support private-only container for BYO credentials HOT 1
- document what `public` means for files HOT 1
- document expiryInSeconds
- delete should accept a list of files to delete HOT 2
- allow some calls to use wildcard glob matching to search HOT 2
- append mode HOT 5
- List should support pagination with a documented default and max limit HOT 1
- azure v12 should have fixed getAccessPolicy, replace custom code with azure sdk call HOT 2
- Support presignUrls on public files or explicitely throw an error HOT 3
- presignUrl with write permissions and BYO credentials fail on PUT Blob HOT 1
- Introduce a `move` function HOT 10
- Generated presigned URLs do not work in the browser HOT 4
- presignedUrl file path must already exist HOT 1
- Azure blob store on-the-fly gzip compression HOT 3
- Allow all origins for presigned URL HOT 10
- CDN domain should be returned by the TVM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aio-lib-files.