Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Content in response can not be resolved to acceptable content type

$
0
0

Hi,

I am having this same issue. I installed df2 via its git repository and I just updated to the latest version (2.0.4) today to make sure it was not related to the same 2.0.2 bug documented previously.

Below I include the response I get from the df server using the Chrome console:

General
Request URL:https://contibands-api.cloud1.mx/api/v2/user/session
Request Method:POST
Status Code:400 Bad Request
Remote Address:159.203.214.101:443

Response Headers
view source
Access-Control-Allow-Origin:http://localhost:4200
Cache-Control:no-cache
Connection:keep-alive
Content-Type:application/json
Date:Wed, 13 Jan 2016 20:19:10 GMT
Server:nginx/1.4.6 (Ubuntu)
Transfer-Encoding:chunked
Vary:Origin
X-Powered-By:PHP/5.5.9-1ubuntu4.14

Request Headers
view source
Accept:application/json, text/javascript
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,es;q=0.6
Connection:keep-alive
Content-Length:53
Content-Type:application/json
Host:contibands-api.cloud1.mx
Origin:http://localhost:4200
Referer:http://localhost:4200/login
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Request Payload
{password: "abcd1234", email: "testowner@cloud1.mx"}

The issue is only happening when calling the API from my Ember app prototype. However, if I test with Postman it works OK, I get the session token and the user info as expected.

I tried to check the logs in storage/logs/dreamfactory.log but it only outputs:
[2016-01-13 20:19:10] development.DEBUG: Resource event: user.session.post.pre_process
[2016-01-13 20:19:10] development.DEBUG: Resource event: user.session.post.post_process

Do you have an idea on what's wrong?

Thank you in advance,
Daniel


Viewing all articles
Browse latest Browse all 5027

Trending Articles