Giter Site home page Giter Site logo

Comments (7)

dayland avatar dayland commented on July 24, 2024 1

@stu-ball , the UX upload feature uses the BlobServiceClient() to directly upload the files to Azure Blob Storage using a blob URI with SAS token.

The code in app/frontend/src/components/filepicker/file-picker.tsx calls a method in the backend App Service that generates a URI with SAS token using Azure Storage Account key credentials in app/backend/app.py.

You may need to think of an alternate pattern if you have CDN, APIM, or other proxy pattern in place.

from pubsec-info-assistant.

dayland avatar dayland commented on July 24, 2024

@gitBenJo , after the file is uploaded to the Blob Storage into the "upload" container. An Azure Function is triggered by the upload of the file. This occurs before the file will be indexed by the Azure Search Indexer.

A couple things to check:

  1. That the Function App Host in your Resource Group has "Always On" set to true.
  2. Check the error logs for the Azure Functions by going to the Function App Host --> Go to the function "FileUploadedFunc" and check the Monitor tab. Here you can see exceptions if they are occurring.

from pubsec-info-assistant.

gitBenJo avatar gitBenJo commented on July 24, 2024

Thanks @dayland

@stu-ball can you reflect your findings here ... if we tried above, or what you saw even prior to the Azure Function trigger pls?

from pubsec-info-assistant.

stu-ball avatar stu-ball commented on July 24, 2024

Thanks @gitBenJo - in our case it looks like the files aren't making it as far as the "upload" container, so the Azure Function isn't being triggered.
We don't have a firewall in front of the web app. We do have a (classic) Microsoft CDN in front, however we are still experiencing this intermittent issue even if we bypass the CDN.

from pubsec-info-assistant.

dayland avatar dayland commented on July 24, 2024

This ticket is marked for closure due to inactivity in 5 days.

from pubsec-info-assistant.

gitBenJo avatar gitBenJo commented on July 24, 2024

@stu-ball , the UX upload feature uses the BlobServiceClient() to directly upload the files to Azure Blob Storage using a blob URI with SAS token.

The code in app/frontend/src/components/filepicker/file-picker.tsx calls a method in the backend App Service that generates a URI with SAS token using Azure Storage Account key credentials in app/backend/app.py.

You may need to think of an alternate pattern if you have CDN, APIM, or other proxy pattern in place.

@dayland - I believe @stu-ball implemented an alternate re CDN & our uploads now work more consistently. Thank you !!

from pubsec-info-assistant.

georearl avatar georearl commented on July 24, 2024

Thanks. Closing

from pubsec-info-assistant.

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.