question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Convert from YAML to JSON not work.

See original GitHub issue

Description Convert Player’s Inventory from YAML to JSON(or MySQL) failed.

Steps to reproduce the behavior:

  1. /bbox migrate in console
  2. Console pull this error below:
[15:41:36 ERROR]: [BentoBox] Could not load objects from database!
Error: java.util.List<org.bukkit.inventory.ItemStack>

Expected behavior Convert from YAML to JSON.

Screenshots console

Server Information:

  • Database being used (YAML, JSON, MySQL, MongoDB): YAML
  • OS: Windows 10
  • Java Version: Java™ SE Runtime Environment (build 1.8.0_191-b12)
  • BentoBox version: BentoBox-1.5.0-SNAPSHOT-b1079
  • Addons:
    • BentoBox-InvSwitcher 0.0.3-SNAPSHOT
    • Biomes 1.5.0.0-SNAPSHOT-#57
    • BSkyBlock 1.5.0
    • Challenges 0.7.5-SNAPSHOT-#206
    • Level 1.5.0-SNAPSHOT
    • Limits 0.2.0-SNAPSHOT
    • WelcomeWarps 1.5.0-SNAPSHOT
  • Other plugins: Vault, Fe, BentoBox, Multiverse-Core

Additional context Here is some inventories from my players. https://pastebin.com/EqYRTtx7 https://pastebin.com/XqSU5g3q

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BONNecommented, May 24, 2019

I can explain how to fix that crash, but there is an issue in Inswitcher.

It looks like invswitcher somehow manages to put null items in players inventory space. Unfortunately, null cannot be converted to itemStack. By removing these null elements, the converter will work.

0reactions
tastybentocommented, May 26, 2019

As mentioned above, the version of InvSwitcher isn’t compatible with YAML anyway so converting from it wasn’t ever going to work. InvSwitcher itself could be rewritten to be better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error converting YAML to JSON, did not find expected key ...
error converting YAML to JSON, did not find expected key kubernetes ... I am doing a lab about kubernetes in google cloud. I...
Read more >
Error converting YAML to JSON could not find expected ':' #2004
I have just run into very curious bug with (.Files.Glob "configOverrides/*").AsConfig Suddenly one of my services charts started to fail on ...
Read more >
How to Convert YAML to JSON [Python, PowerShell, Go]
To create the YAML to JSON conversion Go script, follow these instructions. 1. Open your code editor and create a new file called...
Read more >
error converting YAML to JSON: yaml: line 27: did not find ...
I am doing a lab about kubernetes Can you help me? I have create the YAML file, but when I am trying to...
Read more >
Convert YAML to JSON online
Convert YAML to JSON on the fly with the json2yaml online editor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found