Drupal JSON API endpoint setup

Created on 25 May 2024, 8 months ago
Updated 28 August 2024, 4 months ago

I am trying to configure External Entities to pull content from another Drupal site over JSON API.

With the 2.x branch and this example, I was able to pull a single entity: https://www.drupal.org/project/external_entities/issues/3427686#comment-... πŸ› Multiple fixes for REST, Wiki and JsonAPI storage clients Needs work

The messages say it loaded all the existing entities, but only one is saved.

With the 3.x branch, it would hang on the batch screen.

Here are some of the log errors:
497 25/May 11:09 xnttmanager Error External entity management batch process error:Invalid translation language () specified.
496 25/May 11:09 php Warning Warning: Attempt to read property "value" on null in xnttmanager_bulk_process() (line 290 of /app/web/modules/contrib/xnttmanager/xnttmanager.module) #0 /app/web/core/includes/bootstrap.in

πŸ’¬ Support request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mortona2k
  • πŸ‡«πŸ‡·France guignonv

    Well, xnttmanager is not quite compatible with v3 yet so it might be one problem. "Language" base fields were introduced in v3 and I have not tested the behavior with xnttmanager... but you did and it seems there are issue. I'll try investigate next week (or the one after...), I put that on my stack.

  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    The linked comment says to use:

    ID: $.id

    However, JSonPath is not a valid option for ID. Only Field name is available when JSONPath is selected as the field mapper.

    I'm wondering if this might be a bug or regression in the 3.x dev branch?

  • πŸ‡«πŸ‡·France guignonv

    It's not a bug, it's because things are not stable and the id field "now" needs to be a direct mapping (ie. the name of a source field) for technical reasons (possible data aggregation amongst others). But it was not the case before and it may change again...

  • Status changed to Fixed 5 months ago
  • πŸ‡«πŸ‡·France guignonv

    I've changed the field mapping interface and it is possible to use JSONPath for id value mapping now. I'll mark this issue as fixed. Reopen it if you think there is something else to fix.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024