[Flow] Implementing an REST-Interface with Flow 2.0
Volker Brückner
vb at balus-paradise.de
Tue Jul 16 20:59:37 CEST 2013
:) oops ...
Using the Mittwald Example i get the following error when trying to insert the first article via the POST-request. (errormessage copied from RESTclient, the FF-tool for testing REST interfaces).
Uncaught Exception in Flow
#1297759968: Exception while property mapping for target type "Article", at property path "": Could not find a suitable type converter for "Article" because no such class or interface exists. (More information)
TYPO3\Flow\Property\Exception thrown in file
/home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php in line 115.
Reference code: 201307162045018ae678
Nested Exception
#1297948764: Could not find a suitable type converter for "Article" because no such class or interface exists. (More information)
TYPO3\Flow\Property\Exception\InvalidTargetException thrown in file
/home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php in line 234.
Reference code: 20130716204501809e61
Go to the FORGE issue tracker and report the issue - if you think it is a bug!
21 TYPO3\Flow\Property\PropertyMapper_Original::findFirstEligibleTypeConverterInObjectHierarchy(array|2|, "array", "Article")
/home/volker/flow-base/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Property_PropertyMapper.php:
00211: }
00212: } else {
my server gives the follwing answer:
Status Code: 500 Internal Server Error
Connection: close
Content-Encoding: gzip
Content-Length: 4141
Content-Type: text/html
Date: Tue, 16 Jul 2013 18:45:01 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
X-Pad: avoid browser bug
X-Powered-By: PHP/5.3.10-1ubuntu3.7
when trying the other example from bwaidelich i just get the following 404 error when calling the products-list:
404 - Not Found
Sorry, the page you requested was not found.
Technical details:
No controller could be resolved which would match your request. Package key: "Wwwision.RestTest", controller name: "products" (reference code: 20130716205410fd2ed5)
Do i have to create different installations of Flow to use the different examples? I call all the examples in the following way: http://vhost.local/package.name/request so there is only one installation of Flow at the moment.
Greetings
Volker
More information about the Flow
mailing list