Drupal\Component\Serialization\Exception\InvalidDataTypeException: yaml_parse(): scanning error encountered during parsing: found character that cannot start any token (line 5, column 9), context while scanning for the next token (line 5, column 9) in Drupal\Component\Serialization\YamlPecl::errorHandler() (line 63 of /var/www/drupalvm/drupal/web/core/lib/Drupal/Component/Serialization/YamlPecl.php).

Due to imporper format arguments in social_auth.services.yml. Will be uploading the patch shortly. Note that this is, also, happening in beta2.

Comments

nikathone created an issue. See original summary.

nikathone’s picture

Status: Active » Needs review
StatusFileSize
new929 bytes

And here is the patch.

gvso’s picture

Thanks @nikathone. I'll try to reproduce this issue in a fresh installation later. Do you know if there was a change in Drupal core which makes using quotes mandatory? It was working fine for me.

By the way, what version of Drupal 8 are you using? Did you install the module using drush or Drupal UI?

nikathone’s picture

Added related issue. And the information about my environment, using https://www.drupalvm.com and https://github.com/drupal-composer/drupal-project for dupal installation. As for how I install this module I did run composer require drupal/social_authwhich gave me the beta version, which wasn't working then I changed to composer require drupal/social_auth:1.x-dev to get the dev version.

Drupal version                  :  8.2.5
 Site URI                        :  http://default
 Database driver                 :  mysql
 Database hostname               :  localhost
 Database port                   :
 Database username               :  drupal
 Database name                   :  drupal
 Database                        :  Connected
 Drupal bootstrap                :  Successful
 Drupal user                     :
 Default theme                   :  bartik
 Administration theme            :  seven
 PHP executable                  :  /usr/bin/php
 PHP configuration               :  /etc/php/7.1/cli/php.ini
 PHP OS                          :  Linux
 Drush script                    :  /var/www/drupalvm/drupal/vendor/drush/drush/drush.php
 Drush version                   :  8.1.8
 Drush temp directory            :  /tmp
 Drush configuration             :
 Drush alias files               :  /home/vagrant/.drush/bootstrapvm.aliases.drushrc.php
 Install profile                 :  standard
 Drupal root                     :  /var/www/drupalvm/drupal/web
 Drupal Settings File            :  sites/default/settings.php
 Site path                       :  sites/default
 File directory path             :  sites/default/files
 Temporary file directory path   :  /tmp
 Sync config path                :  sites/default/files/config_OHdKTqfM1IppW-kqYg1RMUf9AUMrBhv0B8cklR8GLruUJkgikhMH8RdEsASLv3TqE6Lhm9
                                    Gp4w/sync
gvso’s picture

I followed your steps and was not able to reproduce the issue. However, I looked at the module in core and all of them enclose the services inside quotes.

  • gvso committed a525cbd on 8.x-1.x
    Issue #2842821 by nikathone: Enclose service arguments in quotes
    
gvso’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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