Adrian Stoch
Posts: 0
Joined: Thu Jul 31, 2014 3:09 pm

"Cannot consume content type" error since upgrade

Hi Alena, just sent the name in the email chain.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

"Cannot consume content type" error since upgrade

Thank you. Got it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

"Cannot consume content type" error since upgrade

Hello Adrian!

I see Katya replied to your email, but there is no update from you.

Did you solve the issue?

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

"Cannot consume content type" error since upgrade

I am getting this same error now on a delete service. It only happens when I try to execute the service from JS. I have tried a lot of variations to execute the service including creating new service(overviewProjectDeleteService) with nothing mapped but the Session Token.
The DELETE used service is located on the App Start Page.
The code is executed when on the "StripePayment_PaymentScreen" using JS folder.

Some variations that I have tried:
toDelete = allId;
overviewProjectDeleteService.execute({data:{"_id":toDelete}});
or
overviewProjectDeleteService.execute({});

These both return the same error.

The app is shared with you. Task_Meeting
Click the top left gear icon. Login
Username:Mark
Pass: 1234
after redirect, Click the gear icon again. Click Upgrade
Click "5 Projects" then click "Make Payment"
Check the first 5 items in the checkbox list. Click "Keep These Projects"

The error is when trying to execute the delete service.

The deletion code is executed in my global "Subscription" JS folder under function selectedProjects()
Image Image Image

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

"Cannot consume content type" error since upgrade

well I kinda solved it, the url is malformed when I execute from JS. I constructed my own url and added it to the service execution and it worked. I'm not sure why this happened, I use the exact same original code(in a different function) to execute the same service on a different page and that works just fine.

Sankar MCTS
Posts: 0
Joined: Tue Oct 28, 2014 8:28 am

"Cannot consume content type" error since upgrade

Hi,
I created the sample application and made it Public.

http://appery.io/app/view/72d15ff4-57...

I tried to implement the same approach like here :
http://devcenter.appery.io/tutorials/...

credentials to login
user name : power
password : power

uploading page will display

Start Firebug Console in Firefox

Browse and select an image in your local system

click Upload Image button
I get Error: Bad Request
https://api.appery.io/rest/1/db/files :: 400 Bad Request 284ms
{"code":"BCXX002","description":"Cannot consume content type"}

Please help me to fix this issue. I am in the need of your help.

Thanks & Regards,
Sankar

Note : I tried to code this sample more than 5 times based on your example - But I get the same error - I am afraid of this error - Please help me.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

"Cannot consume content type" error since upgrade

Hello!

We were testing this case on production and test environment and looks like the issue is not reproducible (indirectly fixed) on test environment.

It is going to be pushed on production in the end of November.

Sorry for inconvenience.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

"Cannot consume content type" error since upgrade

Hello!

Sorry, could you clarify whether you work in the new or old Appery.io builder?

Joseph Francis
Posts: 0
Joined: Thu Sep 04, 2014 8:52 pm

"Cannot consume content type" error since upgrade

I am having the same problems, is the "upload file" function just now dead?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

"Cannot consume content type" error since upgrade

Hello Joseph!

Yes, there is a bug unfortunately.

Return to “Issues”