Comments (2)
Can check the error log in Drupal and report the actual error here?
from reservoir.
I'm seeing the same issue with the taxonomy API out of the box, here's what my log has:
172.17.0.1 - - [17/Apr/2018:20:47:20 +0000] "GET /jsonapi/taxonomy_term/tags HTTP/1.1" 500 74 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
172.17.0.1 - - [17/Apr/2018:20:49:54 +0000] "GET / HTTP/1.1" 403 4700 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Kitematic/0.17.2 Chrome/45.0.2454.85 Electron/0.35.4 Safari/537.36"
[Tue Apr 17 20:50:16.786552 2018] [php7:notice] [pid 80] [client 172.17.0.1:35048]
Error: Call to a member function getTypeName() on null in /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/Value/RelationshipItemNormalizerValue.php on line 43
#0 /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/Value/FieldNormalizerValue.php(67): Drupal\\jsonapi\\Normalizer\\Value\\RelationshipItemNormalizerValue->rasterizeValue()\n
#1 /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/Value/RelationshipNormalizerValue.php(66): Drupal\\jsonapi\\Normalizer\\Value\\FieldNormalizerValue->rasterizeValue()\n
#2 /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/Value/EntityNormalizerValue.php(107): Drupal\\jsonapi\\Normalizer\\Value\\RelationshipNormalizerValue->rasterizeValue()\n
#3 /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/Value/JsonApiDocumentTopLevelNormalizerValue.php(114): Drupal\\jsonapi\\Normalizer\\Value\\EntityNormalizerValue->rasterizeValue()\n
#4 /app/drupal/docroot/modules/contrib/jsonapi/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php(139): Drupal\\jsonapi\\Normalizer\\Value\\JsonApiDocumentTopLevelNormalizerValue->rasterizeValue()\n
#5 /app/drupal/vendor/symfony/serializer/Serializer.php(128): Drupal\\jsonapi\\Normalizer\\JsonApiDocumentTopLevelNormalizer->normalize(Object(Drupal\\jsonapi\\Resource\\JsonApiDocumentTopLevel), 'api_json', Array)\n
#6 /app/drupal/vendor/symfony/serializer/Serializer.php(101): Symfony\\Component\\Serializer\\Serializer->normalize(Object(Drupal\\jsonapi\\Resource\\JsonApiDocumentTopLevel), 'api_json', Array)\n
#7 /app/drupal/docroot/modules/contrib/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php(130): Symfony\\Component\\Serializer\\Serializer->serialize(Object(Drupal\\jsonapi\\Resource\\JsonApiDocumentTopLevel), 'api_json', Array)\n
#8 /app/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\\jsonapi\\EventSubscriber\\ResourceResponseSubscriber->Drupal\\jsonapi\\EventSubscriber\\{closure}()\n
#9 /app/drupal/docroot/modules/contrib/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php(131): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n
#10 /app/drupal/docroot/modules/contrib/jsonapi/src/EventSubscriber/ResourceResponseSubscriber.php(90): Drupal\\jsonapi\\EventSubscriber\\ResourceResponseSubscriber->renderResponseBody(Object(Symfony\\Component\\HttpFoundation\\Request), Object(Drupal\\jsonapi\\ResourceResponse), Object(Symfony\\Component\\Serializer\\Serializer), 'api_json')\n
#11 /app/drupal/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\\jsonapi\\EventSubscriber\\ResourceResponseSubscriber->onResponse(Object(Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent), 'kernel.response', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n
#12 /app/drupal/vendor/symfony/http-kernel/HttpKernel.php(184): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent))\n
#13 /app/drupal/vendor/symfony/http-kernel/HttpKernel.phpdrupal/vendor/symfony/http-kernel/HttpKernel.phpEvent\\FilterResponseEvent))\n
#13 /app/drupal/vendor/symfony/http-kernel/HttpKernel.php\HttpKernel\\Event\\FilterResponseEvent))\n
#13 /app/drupal/vendor/symfony/http-kernel/HttpKernel.phphp(184): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.response', Object(Symfony\\Component\\HttpKernel\\Event\\FilterResponseEvent))\n
#13 /app/drupal/vendor/symfony/http-kernel/HttpKernel.php13 /app/drupal/vendor/symfony/http-kernel/HttpKernel.php(166): Symfony\\Component\\HttpKernel\\HttpKernel->filterResponse(Object(Drupal\\jsonapi\\ResourceResponse), Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n
#14 /app/drupal/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n
#15 /app/drupal/docroot/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php(67): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#16 /app/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Drupal\\simple_oauth\\HttpMiddleware\\BasicAuthSwap->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#17 /app/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#18 /app/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#19 /app/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#20 /app/drupal/docroot/modules/contrib/jsonapi/src/StackMiddleware/FormatSetter.php(38): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#21 /app/drupal/vendor/asm89/stack-cors/src/Asm89/Stack/Cors.php(40): Drupal\\jsonapi\\StackMiddleware\\FormatSetter->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#22 /app/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Asm89\\Stack\\Cors->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#23 /app/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#24 /app/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#25 /app/drupal/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#26 /app/drupal/docroot/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n
#27 {main}
from reservoir.
Related Issues (20)
- Cannot install Reservoir sites using config management best practices HOT 7
- jsonapi 404 spits out HTML HOT 1
- Delete 'Content model' Article breaks openapi/jsonapi HOT 2
- Demo content types + content should be optional during the installation process HOT 3
- CORS configuration has no effect when using default services.yml HOT 2
- webflo/drupal-core-strict creates dependency conflicts
- Protect the /admin/api/advanced route HOT 2
- Add support for GraphQL HOT 15
- Refreshing an access token
- Can't install reservoir due to drupal-core-strict HOT 1
- Lightning combined with Reservoir HOT 2
- Composer install crashes on Install -- "Killed" before completing build HOT 2
- Integrate Reservoir with search HOT 1
- Reservoir doesn't install since drupal-scaffold 2.4.0 HOT 1
- Scale images on advanced API form
- Drupal's Security Model HOT 2
- composer create-project acquia/reservoir-project reservoir-project --stability=alpha failed HOT 2
- Challenging some CMS restrictions
- Are install steps correct? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reservoir.