Malformed YAML ... CharConversionException in leipzig_germany.osm.pbf

I am trying to import leipzig_germany.osm.pbf to perform a map matching using the provided test osm and gpx traces. However, I keep seeing the following error:

ishamac@Ishas-MacBook-Pro graphhopper % java -jar web/target/graphhopper-web-3.0-SNAPSHOT.jar import map-matching/files/leipzig_germany.osm.pbf

io.dropwizard.configuration.ConfigurationParsingException: map-matching/files/leipzig_germany.osm.pbf has an error:

  • Malformed YAML at line: 2, column: 2; Invalid UTF-8 start byte 0x9c (at char #23, byte #-1)
    at [Source: (FileInputStream); line: 1, column: 1]

What is to be done?

You are passing the .osm.pbf file where you are supposed to pass your config file. Take a look at the documentation here: