Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types endpoint failing with AttributeError: lookupSchema #150

Closed
lukasgraf opened this issue Oct 22, 2016 · 2 comments · Fixed by #373
Closed

types endpoint failing with AttributeError: lookupSchema #150

lukasgraf opened this issue Oct 22, 2016 · 2 comments · Fixed by #373

Comments

@lukasgraf
Copy link
Member

lukasgraf commented Oct 22, 2016

GET http://localhost:8080/Plone/@types/Document
2016-10-22 12:06:19 ERROR Zope.SiteErrorLog 1477152379.920.0579750084626 http://localhost:8080/Plone/@types/Document
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.rest.service, line 20, in __call__
  Module plone.restapi.services, line 15, in render
  Module plone.restapi.services.types.get, line 50, in reply
  Module plone.restapi.types.utils, line 134, in get_jsonschema_for_portal_type
  Module plone.restapi.types.utils, line 108, in get_jsonschema_for_fti
  Module plone.restapi.types.utils, line 37, in get_ordered_fields
AttributeError: lookupSchema

(On both Plone 4.3.x and Plone 5.0.4)

@lukasgraf
Copy link
Member Author

Was caused by not having plone.app.contenttypes installed, so I had DynamicViewTypeInformations instead of DexterityFTIs.

Apparently the @types endpoint only supports DX FTIs so far.

@jaroel
Copy link
Member

jaroel commented Apr 28, 2017

This is also an issue for the site root:
2017-04-28 15:55:37 ERROR Zope.SiteErrorLog 1493387737.640.088023899385 http://localhost:8080/Plone/@types/Plone%20Site
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.rest.service, line 20, in call
Module plone.restapi.services, line 19, in render
Module plone.restapi.services.types.get, line 52, in reply
Module plone.restapi.types.utils, line 169, in get_jsonschema_for_portal_type
Module plone.restapi.types.utils, line 132, in get_jsonschema_for_fti
AttributeError: lookupSchema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants