Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
This repository was archived by the owner on May 25, 2021. It is now read-only.

Tictactoe notifications not displaying in generated app #274

@jholleran

Description

@jholleran

Describe the bug
I have setup two Pods, (User 1) and (User 2). User 1 creates a tictactoe game for User 2. When I log in a User 2 I don't get an notification that the game has been created.

To Reproduce
Steps to reproduce the behavior:

  1. Register User 1
  2. Register User 2
  3. User 1 creates a game to User 2
  4. Login as User 2 and check for notifications

Expected behavior
A notification should be displayed in the top right corner of the screen and when you click it it should display the notifications in a list.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser Chrome
  • Version 78.0.3904.97 (Official Build) (64-bit)

Smartphone (please complete the following information):
N/A

Additional context
The requests in the Network tab are all ok (No 404 errors). The only error I see is:
index.js:23236 Uncaught (in promise) Error: Expected entity but got literal on line 1.
at u.value (index.js:23236)
at u.value (index.js:22826)
at u.value (index.js:22854)
at index.js:23321
at Array.every ()
at u.value (index.js:23320)
at index.js:101678
at w (index.js:46479)
at Generator._invoke (index.js:46459)
at Generator.e. [as next] (index.js:46498)
at p (index.js:92343)
at a (index.js:92360)

Also, I noticed that when there is a GET request to the tictactoe inbox the response is JSONLD:

{"@id":"http://localhost:8000/tom/public/games/tictactoe/inbox","contains":["http://localhost:8000/tom/public/games/tictactoe/inbox/1574256847099","http://localhost:8000/tom/public/games/tictactoe/inbox/.acl"],"@context":{"contains":{"@id":"http://www.w3.org/ns/ldp#contains","@type":"@id"},"schema":"http://schema.org/","a":"http://www.w3.org/ns/auth/acl#type","solid":"http://www.w3.org/ns/solid/terms#","owl":"http://www.w3.org/2002/07/owl#","xsd":"http://www.w3.org/2001/XMLSchema#","skos":"http://www.w3.org/2004/02/skos/core#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","acl":"http://www.w3.org/ns/auth/acl#","n":"http://www.w3.org/2006/vcard/ns#","geo":"http://www.w3.org/2003/01/geo/wgs84_pos#","dc11":"http://purl.org/dc/elements/1.1/","as":"https://www.w3.org/ns/activitystreams#","rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","terms":"http://purl.org/dc/terms#","ldp":"http://www.w3.org/ns/ldp#","time":"http://www.w3.org/2006/time#","ws":"http://www.w3.org/ns/pim/space#","prov":"http://www.w3.org/ns/prov#","foaf":"http://xmlns.com/foaf/0.1/","dc":"http://purl.org/dc/terms/"}}

The request header for the GET request has the following:

accept: application/n-quads,application/trig;q=0.95,application/ld+json;q=0.9,application/n-triples;q=0.8,text/turtle;q=0.5,*/*;q=0.1

As you can see it has application/ld+json before text/turtle.

If the SDK generator does not support JSONLD it should not have this in the Accept header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions