valiton / ShariffBundle

0 stars 0 forks source link

Http Status Code 204 #1

Closed barbieswimcrew closed 9 years ago

barbieswimcrew commented 9 years ago

Hi at all,

i'm trying to get the ShariffBundle work on my page but without any success. Might be awesome if you'd help me out.

What i did:

After all that no further error occured. But when i tried opening the url above chrome's network tab registered a response: Status Code 204 - No Content

I don't have any idea why this is happening... maybe you have any clue?

Thank you in advance!

uwej711 commented 9 years ago

Currently composer should already install FOSRestBundle. You shouldn't set the minimum-stability to dev as this will give you dev versions of all the bundles. Rather require valiton/shariff-bundle:dev-master. I just checked my sample app with symfony 2.3.25, the framework serializer (not JMSSerializer) and found that 204 is returned when the result is null, for example when the passed url does not match the configured domain.

Can you please paste your configuration for valiton_shariff here?

barbieswimcrew commented 9 years ago

Oh my god! You're my hero! I did not know that the URL could be the clue. After you wrote that the passed url could not match the configured domain i tried modifying the configured url and now it works. First i had http://www.example.com but it has to be like so: www.example.com (without protocol).

Thank you so many times!