Error: Unable to publish model. Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'

I’m using CloudCode with JS and seem to be getting an error when deploying:

Error: Unable to publish model. Failed to execute ‘append’ on ‘FormData’: parameter 2 is not of type ‘Blob’

This error was not appearing before, so I was wondering what could be the cause for the error?

Application ID: 330D51DD-F8A7-07E8-FF88-819D27EFCB00

Hi, @Social_Smarttwigs

How can we reproduce the issue in the app?

Regards,
Marina

@Marina.Rudenko I’m not too sure, since the deployment was working just fine in the past.

I assume the error lies between lines 285-311 in here.

Though, I’m not too sure since this was working just fine in the past.

@Marina.Rudenko Here’s an image of where the error is located:

1 Like

@Social_Smarttwigs what model name do you use for the deployment?

Regards,
Marina

@Marina.Rudenko It’s deployed to model “default”

@Social_Smarttwigs, Let’s try the following. Please check the package.json file. What version of backendless-coderunner do you have there? Try to update to the latest version, which is 6.5.2. Will be waiting for you reply

Regards,
Marina

@Marina.Rudenko Still getting the same error

@Social_Smarttwigs Could we identify when the error started to appear? Did you make any changes to your code? And what character of these changes are?

I was first aware of the issue yesterday. I tried deploying the same code that was last published but the same error appears.

Hello @Social_Smarttwigs

Can you provide us with what the formData variable look like? Check before doing this, does it store personal data

Regards,
Viktor

The formData variable is part of the “backendless-coderunner” package.

Here’s an image of the output:

I’m not sure what could be causing this error as I can’t even deploy previous builds that were deployable. All I can assume is that the error lies within the “backendless-request” package that I stated before: