GithubHelp home page GithubHelp logo

Comments (16)

sandeep-paliwal avatar sandeep-paliwal commented on June 19, 2024 1

@UrsBoller I am checking this.

from aio-lib-files.

meryllblanchet avatar meryllblanchet commented on June 19, 2024 1

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.

aiojbot avatar aiojbot commented on June 19, 2024

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-937

from aio-lib-files.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

Relates to #52.

from aio-lib-files.

UrsBoller avatar UrsBoller commented on June 19, 2024

@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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

Reopening the issue while we are investigating further.

from aio-lib-files.

sandeep-paliwal avatar sandeep-paliwal commented on June 19, 2024

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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

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.

UrsBoller avatar UrsBoller commented on June 19, 2024

@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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

@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.

UrsBoller avatar UrsBoller commented on June 19, 2024

@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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

@UrsBoller or try const logger = require('@adobe/aio-lib-core-logging')('Your App')

from aio-lib-files.

UrsBoller avatar UrsBoller commented on June 19, 2024

@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.

UrsBoller avatar UrsBoller commented on June 19, 2024

@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.

meryllblanchet avatar meryllblanchet commented on June 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.