Services Plugins FAQs

Box App stopped working

I’ve been using this Box app for a while - no problems, but it stopped creating folders and uploading files yesterday.

I can see folders/files till then. It seemed to stop around 10.18pm UK.

I’ve reverted to earlier versions of my bubble app to test, but the new errors still happen.

This image shows the error message. It references a folder that doesn’t exist in my Box.

If you can help that would be great

Thanks

Bruce

Hello @bruce.mcvicar

Looking at the error, seems like an item with same id already is in your storage on Box server.

Also check this reference: https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/#409-conflict
This error may be produced when the resource to be created already exists. Check the extended error message in the response body for more details.

Can you provide more details , like information from Box if you have or not such item, steps to reproduce the issue, console.logs, etc so we could help you better?
Thanks for understanding :pray:

Regards,
Dumitru

Dumitru

Hi, I agree it indicates the object already exists. However

  • when I list all folders, the folder being created doesn’t exist. This is itself a problem as the folder should have been created when the object was created (not when a file is uploaded into it), but that doesn’t seem to happen, and I don’t get an error message telling me it has hasn’t happened
  • if the folder already existed, the workflow shouldn’t run as it ‘only if’ runs if the folder doesn’t exist.

In this example, I created an object with unique id: 1607536207813x792384595032539100.
The workflow to create it should crate the folder with same name, but this folder isn’t listed when I search in Box:

Thrn I try to upload a file to the folder. As a precaution, I run the workflow to creat the folder ONLY IF it doesn’t exist. However, that gives an error:
Error message when trying to create the folder with object unique id as folder name:

Workflow component, with ‘only if’ check:

If I tehn delete the Create folder’ element from the file upload workflow, and run it, I get an error uploading the file:


Note - the Alert tells me the folder id value is empty, suggesting the folder doesn’t exist

The element that causes this is this:

Thanks for your help on this, any advice is appreciated.

Regards

Bruce

Hi @bruce.mcvicar,

Let me jump in here to help you. Thanks a lot for providing additional details. Please let us check on our plugin with developer team and get back to you with working solutions asap!

Best,
Alex

Hi @bruce.mcvicar,

Please upgrade the plugin to the latest version, refresh your app and give it a try again.

Box service changed their auth method, so we had to adjust our plugin as well. Please follow the instructions.

For all API Calls you’ll need an Access token for authorization.

Below is an instruction to obtain an access token.

  1. Go to developer page - Box | Login

  2. Then tab to your service account

  1. In your account settings go to the “configuration” tab and click on the “Generate Key” button:

  1. Select token expiration and press OK:

  1. Copy the access token:

  1. Paste the resulting token into the plugin field

And you are good to go!

Alex

Hi, thanks for looking at this. I’ve refreshed app pages and am using v1.2.0.

So far, I’m getting exactly same pattern. I can upload files into existing folders (so access authorisation seems ok), but can’t create new folders.

Do I need a new token just to create folders?

Also, see attached, the error message references “Alex test folder”, which I don’t have.

Regards

Bruce

Hi @bruce.mcvicar,

Thanks for feedback!

Sorry but have you actually followed the steps as shown above with screenshot instructions? Because Box changed their auth method so now it is required to place an access token.

The error you are experiencing is due to the same folder created. Could you please check just to be sure there isn’t one already there?

Thanks

Alex

Hi, thanks for this. I can confirm that I reissued the access token previously.

This time, I’ve reissued the access token, and also upgraded to v1.4.0.

With this version, it is same as previous v1.2.0. I can:

  • Upload files to existing folders.
  • Delete files from existing folders.
  • View a list of folders and the files in those folders (see screenshot below).

The only thing I can’t do is create a new folder. Although Box may have changed their access method, this doesn’t feel like a token issue given the actions I can take with the token provided.

Error message when I try to create a new folder (even though there is no way this folder existed already, as the folder name is generated by Bubble in this workflow):

View of folders already created. Dropdown list is in descending order, so you can see the most recent created folder at top of list. That folder was created on 7-Dec-2020

Workflow that tried to create the folder is this:

Let me know if there are any other tests I can try.

Thanks

Bruce

Thanks @bruce.mcvicar for letting me know.

Please let me coordinate with our developer team to check on our plugin, then get back to with another reply asap. :pray:

Hi @bruce.mcvicar,

We checked on our plugin again, and we are not able to reproduce this error, unfortunately. It only happens when you have an existing folder with the same name on Box.

Could you please add our support@zeroqode.com account to your Settings/Collaboration tab so we can check on this issue inside your app and give a complete feedback after proper investigation.

Please tell us your app name and page name where it occurs on test, as well as exact steps to follow in order to reproduce it.

Note : avoid the warning message regarding plan, as we are an agency and you can easily add our account.

We’ll investigate it with our developers within your app then get back with a reply asap!

Alex

Alex

Hi, I’ve invited you to access. Suggested instructions:

Go to users
Filter on Ainsdale
Run As the selected user
Go to ‘User home’ (logged in home page)
Select Cases in top menu
Select ‘Zeroqode test’ case. A new tab will open
Select Documents in the new tab
Click on the up-arrow to upload a document
This error message will happen

For an alternative error message:
Click on RFQs
Click on + to create an RFQ
Click on the new listed entry to open a new tab for the RFQ
Click on Select lenders, and click on one name on left-side – it will move to right side to show it’s been selected
Click on Send RFQ to lenders
This generates a different message that always references the folder ‘Alex test folder’:

Let me know if you need more details

Thanks

Bruce

Thanks @bruce.mcvicar for additional details!

Please let us investigate and get back to you with another reply asap.

Alex

Good news @bruce.mcvicar,

We managed to check on your app and plugin setups. It seems to be all good, and we are able to create a folder on your side.

Please check the zq_test page we left for testing purposes. We ran a simple test by creating a folder named ZQ TEST FOLDER, which should be visible in your Box account. Now, we changed the name to ZQ TEST FOLDER 2 so you can give it a try yourself.

The first run is going to run smoothly, but second one will throw that error saying ‘folder with same name exists’.

Your app contains multiple FileUploader events which have the same workflows to create a folder, and you are passing the unique id as Folder Name, so perhaps there should be one containing the same unique id on your Box account.

We recommend you debug the app step by step to see how the user flow works in order to see where the roadblock is, because your app contains lots of events and actions to create a folder, which may cause some conflicts.

Thanks for your patience!

Alex

Hi, just to conclude this one, I’ve found the cause. My ‘Create folder’ event checks first whether the folder exist by bringing back the list of folders from Box and only attempting to Create if it’s not in the list.

It turns out the ‘Get Folder entries’ only brings back 100 folders max, so causing errors if the name is missed from the list.

The solution I’ve implemented is to store the foldername/folderid when I create a folder and do the check in Bubble instead.

Thanks

Bruce

Hi @bruce.mcvicar,

Thanks for feedback. I’m glad it is running smoothly now on your side as well!

If you like our plugin so far, could you please rate it by going to Plugins tab in Bubble editor? You can find the plugin by name and give it as many stars as it deserves. The more feedback we get, the more motivated we are to build great plugins!

Best,
Alex