Page 2 of 3

"Cannot consume content type" error since upgrade

Posted: Mon Sep 22, 2014 11:35 pm
by Adrian Stoch

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


"Cannot consume content type" error since upgrade

Posted: Mon Sep 22, 2014 11:38 pm
by Alena Prykhodko

Thank you. Got it.


"Cannot consume content type" error since upgrade

Posted: Fri Sep 26, 2014 1:11 pm
by Maryna Brodina

Hello Adrian!

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

Did you solve the issue?


"Cannot consume content type" error since upgrade

Posted: Fri Oct 10, 2014 10:31 pm
by Matt6607699

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


"Cannot consume content type" error since upgrade

Posted: Fri Oct 10, 2014 11:41 pm
by Matt6607699

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.


"Cannot consume content type" error since upgrade

Posted: Tue Oct 28, 2014 8:28 am
by Sankar MCTS

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.


"Cannot consume content type" error since upgrade

Posted: Tue Oct 28, 2014 1:48 pm
by Maryna Brodina

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.


"Cannot consume content type" error since upgrade

Posted: Wed Oct 29, 2014 10:36 am
by Maryna Brodina

Hello!

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


"Cannot consume content type" error since upgrade

Posted: Wed Oct 29, 2014 1:50 pm
by Joseph Francis

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


"Cannot consume content type" error since upgrade

Posted: Wed Oct 29, 2014 2:05 pm
by Maryna Brodina

Hello Joseph!

Yes, there is a bug unfortunately.