D10 compatibility follow-up

Created on 21 September 2023, 9 months ago
Updated 27 November 2023, 7 months ago

This is a follow-up from 📌 Automated Drupal 10 compatibility fixes Fixed , it looks like we still have one query to adjust to make this fully D10-compatible.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain marcoscano Barcelona, Spain

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

Comments & Activities

  • Issue created by @marcoscano
  • Status changed to Needs review 9 months ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 5.7
    last update 9 months ago
    Composer require failure
  • 🇪🇸Spain marcoscano Barcelona, Spain
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 5.7
    last update 9 months ago
    Composer require failure
  • 🇪🇸Spain marcoscano Barcelona, Spain

    A few more.
    (Sorry, this has been rolled (and checked) on top of patches from Execute node serialization inside new render context RTBC and 🐛 TypeError: Argument 2 passed to Drupal\applenews\ApplenewsManager::getMetadata() must be of the type string, null given RTBC so it might not apply to other projects as-is.

  • 🇮🇳India hardikpandya

    This could go as a separate issue but since D10 compatibility is talked here, I would like to mention that I am having a hard time to make this module work with Drupal 10. I have tried this on a fresh Drupal 10 installation but the issue persists.

    Post adding the keys, secret and channel, I have created a template(attached is the configuration of it). For ease, I have added just the title field to the template.

    When I create a new article and have Publish to Apple News checked, the node gets saved but get an error Apple News: INVALID_DOCUMENT. In the database log, I see this message:

    User notice: Array ( [code] => 400 [message] => HTTP/2 400 [response] => stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [code] => INVALID_DOCUMENT [keyPath] => Array ( ) [message] => Exception while processing the article with Message Expected to find an object with property ['metadata'] in path $ but found 'com.fasterxml.jackson.databind.node.NullNode'. This is not a json object according to the JsonProvider: 'com.jayway.jsonpath.spi.json.JacksonJsonNodeJsonProvider'. ) ) ) ) in C:\laragon\www\drupal10\vendor\chapter-three\apple-news-api\src\PublisherAPI\Base.php on line 197 in ChapterThree\AppleNewsAPI\PublisherAPI\Base->triggerError() (line 288 of C:\laragon\www\drupal10\vendor\chapter-three\apple-news-api\src\PublisherAPI\Base.php)

    Is there anything that I have missed?

  • 🇺🇸United States jbiswas

    Faced same above error while posting content to Apple news.
    I am using 8.x-1.0-beta4 version with patch https://www.drupal.org/files/issues/2023-06-13/3366388-2.patch

    I am able to push content to Apple News when my template settings components is with format none.(below is the component data from applenews.applenews_template.article_template.yml file

    )

    component_data:
          text:
            field_name: body
            field_property: processed
          format: none

    But the contents are getting published as plain text. So when I am changing the format to html, I am getting this.
    Error while trying to save an article in Apple News: INVALID_DOCUMENT

    Has anyone faced this before and remediated this error ?

Production build 0.69.0 2024