Some anime with ?mine=1 parameter don't work

Issue #95 resolved
Former user created an issue

For example when I'm going to the url "http://localhost:8000/2/anime/223?mine=1" this error comes:

[{"message":"Expected object but got boolean. Do you have the wrong @Type mapping or could this be a Doctrine many-to-many relation?","class":"JMS\\Serializer\\Exception\\LogicException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\jms\\serializer\\src\\JMS\\Serializer\\SerializationContext.php","line":68,"args":[]},{"namespace":"JMS\\Serializer","short_class":"SerializationContext","class":"JMS\\Serializer\\SerializationContext","type":"->","function":"isVisiting","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\jms\\serializer\\src\\JMS\\Serializer\\GraphNavigator.php","line":143,"args":[["boolean",false]]},{"namespace":"JMS\\Serializer","short_class":"GraphNavigator","class":"JMS\\Serializer\\GraphNavigator","type":"->","function":"accept","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\jms\\serializer\\src\\JMS\\Serializer\\GenericSerializationVisitor.php","line":140,"args":[["boolean",false],["array",{"name":["string","DateTime"],"params":["array",[["string","Y-m-d"]]]}],["object","JMS\\Serializer\\SerializationContext"]]},{"namespace":"JMS\\Serializer","short_class":"GenericSerializationVisitor","class":"JMS\\Serializer\\GenericSerializationVisitor","type":"->","function":"visitProperty","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\jms\\serializer\\src\\JMS\\Serializer\\GraphNavigator.php","line":227,"args":[["object","JMS\\Serializer\\Metadata\\PropertyMetadata"],["object","Atarashii\\APIBundle\\Model\\Anime"],["object","JMS\\Serializer\\SerializationContext"]]},{"namespace":"JMS\\Serializer","short_class":"GraphNavigator","class":"JMS\\Serializer\\GraphNavigator","type":"->","function":"accept","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\jms\\serializer\\src\\JMS\\Serializer\\Serializer.php","line":91,"args":[["object","Atarashii\\APIBundle\\Model\\Anime"],["null",null],["object","JMS\\Serializer\\SerializationContext"]]},{"namespace":"JMS\\Serializer","short_class":"Serializer","class":"JMS\\Serializer\\Serializer","type":"->","function":"serialize","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\friendsofsymfony\\rest-bundle\\FOS\\RestBundle\\View\\ViewHandler.php","line":395,"args":[["object","Atarashii\\APIBundle\\Model\\Anime"],["string","json"],["object","JMS\\Serializer\\SerializationContext"]]},{"namespace":"FOS\\RestBundle\\View","short_class":"ViewHandler","class":"FOS\\RestBundle\\View\\ViewHandler","type":"->","function":"initResponse","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\friendsofsymfony\\rest-bundle\\FOS\\RestBundle\\View\\ViewHandler.php","line":368,"args":[["object","FOS\\RestBundle\\View\\View"],["string","json"]]},{"namespace":"FOS\\RestBundle\\View","short_class":"ViewHandler","class":"FOS\\RestBundle\\View\\ViewHandler","type":"->","function":"createResponse","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\friendsofsymfony\\rest-bundle\\FOS\\RestBundle\\View\\ViewHandler.php","line":262,"args":[["object","FOS\\RestBundle\\View\\View"],["object","Symfony\\Component\\HttpFoundation\\Request"],["string","json"]]},{"namespace":"FOS\\RestBundle\\View","short_class":"ViewHandler","class":"FOS\\RestBundle\\View\\ViewHandler","type":"->","function":"handle","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\friendsofsymfony\\rest-bundle\\FOS\\RestBundle\\EventListener\\ViewResponseListener.php","line":136,"args":[["object","FOS\\RestBundle\\View\\View"],["object","Symfony\\Component\\HttpFoundation\\Request"]]},{"namespace":"FOS\\RestBundle\\EventListener","short_class":"ViewResponseListener","class":"FOS\\RestBundle\\EventListener\\ViewResponseListener","type":"->","function":"onKernelView","file":null,"line":null,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"","short_class":"","class":"","type":"","function":"call_user_func","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher.php","line":472,"args":[["array",[["object","FOS\\RestBundle\\EventListener\\ViewResponseListener"],["string","onKernelView"]]],["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"Symfony\\Component\\HttpKernel\\Debug","short_class":"TraceableEventDispatcher","class":"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher","type":"->","function":"Symfony\\Component\\HttpKernel\\Debug\\{closure}","file":null,"line":null,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"","short_class":"","class":"","type":"","function":"call_user_func","file":"C:\\Users\\Tariq\\atarashii-api\\app\\cache\\dev\\classes.php","line":1686,"args":[["object","Closure"],["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"doDispatch","file":"C:\\Users\\Tariq\\atarashii-api\\app\\cache\\dev\\classes.php","line":1615,"args":[["array",[["object","Closure"]]],["string","kernel.view"],["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","function":"dispatch","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher.php","line":151,"args":[["string","kernel.view"],["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"Symfony\\Component\\HttpKernel\\Debug","short_class":"TraceableEventDispatcher","class":"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher","type":"->","function":"dispatch","file":"C:\\Users\\Tariq\\atarashii-api\\app\\bootstrap.php.cache","line":2972,"args":[["string","kernel.view"],["object","Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent"]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"C:\\Users\\Tariq\\atarashii-api\\app\\bootstrap.php.cache","line":2943,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["string","1"]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handle","file":"C:\\Users\\Tariq\\atarashii-api\\app\\bootstrap.php.cache","line":3072,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["string","1"],["boolean",true]]},{"namespace":"Symfony\\Component\\HttpKernel\\DependencyInjection","short_class":"ContainerAwareHttpKernel","class":"Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel","type":"->","function":"handle","file":"C:\\Users\\Tariq\\atarashii-api\\app\\bootstrap.php.cache","line":2343,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["string","1"],["boolean",true]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"->","function":"handle","file":"C:\\Users\\Tariq\\atarashii-api\\web\\app_dev.php","line":28,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"]]},{"namespace":"","short_class":"","class":"","type":"","function":"require","file":"C:\\Users\\Tariq\\atarashii-api\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle\\Resources\\config\\router_dev.php","line":40,"args":[["string","C:\\Users\\Tariq\\atarashii-api\\web\\app_dev.php"]]}]}]

This only comes up with certain anime and only with the "mine" parameter set. I have tried using both the latest release and the development one and they both have this issue.

Comments (5)

  1. Michael Johnson

    Probably a parsing issue with the page. The unit tests pass, so it means you hit an edge case (or MAL changed layout and we only find that in certain circumstances).

    I can try to reproduce it myself, but it would be even easier if I had the actual pages you're seeing under your account.

    Can you go to the anime page on MAL while signed in and save the page (just the HTML), then choose "edit details" and save that too in the same manner? Once you have those pages, e-mail support (at) atarashiiapp [dot] com with the two pages attached and reference this ticket number.

    Thanks.

  2. Michael Johnson

    What commit hash are you at? (Run "git describe"). It looks like a date formatting issue that may have been fixed in the newest code.

  3. Ratan Dhawtal

    Can you go to: "http://myanimelist.net/editlist.php?type=anime&id=223&hideLayout=true" and just save it as Michael said before and send it to us? I want to make sure that the personal details there are right. I suspect that there might be something wrong there.

    The git describe returns the last commit which is good.

  4. Log in to comment