BSData / BSData/catalogue-development

Error adding the-silver-bayonet data source to BattleScribe

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PowerShell
Stars
28
Forks
10
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Open BattleScribe Roster Editor
2. Click on 'Manage Data'
3. Click on 'Add Data'
4. Click on 'Add Data Source'
5. Enter 'https://github.com/BSData/the-silver-bayonet/releases/latest/download/the-silver-bayonet.latest.bsi' and click 'OK'
6. The following error occurs:
```
Details:

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 13
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:180)
at com.google.gson.Gson.fromJson(Gson.java:755)
at com.google.gson.Gson.fromJson(Gson.java:721)
at com.google.gson.Gson.fromJson(Gson.java:670)
at com.google.gson.Gson.fromJson(Gson.java:642)
at net.battlescribe.a.c.e.d(BattleScribe:463)
at net.battlescribe.desktop.common.RepositorySourceWindowController.a(BattleScribe:221)
at net.battlescribe.desktop.common.RepositorySourceWindowController.access$downloadRepositorySource(BattleScribe:22)
at net.battlescribe.desktop.common.RepositorySourceWindowController$a.a(BattleScribe:247)
at net.battlescribe.desktop.common.RepositorySourceWindowController$a.call(BattleScribe:245)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

-------------------- Caused By --------------------

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 13
at com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:168)
at com.google.gson.Gson.fromJson(Gson.java:755)
at com.google.gson.Gson.fromJson(Gson.java:721)
at com.google.gson.Gson.fromJson(Gson.java:670)
at com.google.gson.Gson.fromJson(Gson.java:642)
at net.battlescribe.a.c.e.d(BattleScribe:463)
at net.battlescribe.desktop.common.RepositorySourceWindowController.a(BattleScribe:221)
at net.battlescribe.desktop.common.RepositorySourceWindowController.access$downloadRepositorySource(BattleScribe:22)
at net.battlescribe.desktop.common.RepositorySourceWindowController$a.a(BattleScribe:247)
at net.battlescribe.desktop.common.RepositorySourceWindowController$a.call(BattleScribe:245)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
```

**Expected behavior**
The game system should be made available for rosters to be created.
Note: the game system loads without error in New Recruit.

**Device and data (please complete the following information):**
- OS: Windows 11
- App being used to create lists: Battlescribe
- App version: 2.03.21
- Data release version: 1.0.1

**Additional context**
This is the first repo I have set up from scratch; any assistance would be greatly appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.