Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing from YASB 2.0 not working #11

Open
oschrenk opened this issue Jul 5, 2019 · 4 comments
Open

Importing from YASB 2.0 not working #11

oschrenk opened this issue Jul 5, 2019 · 4 comments

Comments

@oschrenk
Copy link

oschrenk commented Jul 5, 2019

I'm trying to import from YASB 2.0 via this url https://raithos.github.io/?f=Galactic%20Empire&d=v8ZsZZ199X123WW26WY211XWWWY165XWW14WWWY229X&sn=Striker%20%2F%20Shuttle%20v2&obs=

I'm not sure what is supposed to happen but after I paste and press enter, I don't see any changes to the app. I only see

Error parsing SyntaxError: Unexpected token h in JSON at position 0
    at JSON.parse (<anonymous>)
    at t.validateXws (main.7dc725d6bcd5c98f286f.js:1)
    at t.<anonymous> (main.7dc725d6bcd5c98f286f.js:1)
    at main.7dc725d6bcd5c98f286f.js:1
    at Object.next (main.7dc725d6bcd5c98f286f.js:1)
    at a (main.7dc725d6bcd5c98f286f.js:1)
    at t.invoke (polyfills.5958ed66b33c6b918ffa.js:1)
    at Object.onInvoke (main.7dc725d6bcd5c98f286f.js:1)
    at t.invoke (polyfills.5958ed66b33c6b918ffa.js:1)
    at e.run (polyfills.5958ed66b33c6b918ffa.js:1)
    at polyfills.5958ed66b33c6b918ffa.js:1
    at t.invokeTask (polyfills.5958ed66b33c6b918ffa.js:1)
    at Object.onInvokeTask (main.7dc725d6bcd5c98f286f.js:1)
    at t.invokeTask (polyfills.5958ed66b33c6b918ffa.js:1)
    at e.runTask (polyfills.5958ed66b33c6b918ffa.js:1)
    at y (polyfills.5958ed66b33c6b918ffa.js:1)
    at e.invokeTask (polyfills.5958ed66b33c6b918ffa.js:1)
    at invoke (polyfills.5958ed66b33c6b918ffa.js:1)
    at n.args.<computed> (polyfills.5958ed66b33c6b918ffa.js:1)

in the Console

Tested on
Chrome Version 75.0.3770.100
Safari Version 13.0 (15608.1.27.40.1)

@jychuah
Copy link
Collaborator

jychuah commented Jul 5, 2019

I'll take a look when I get to a laptop. Out of curiosity does exporting from XWS in yasb work?

@oschrenk
Copy link
Author

oschrenk commented Jul 6, 2019

Yes. Exporting to XWS in YASB 2.0 ( https://raithos.github.io ) It's in beta but it works served me well as a workaround.

@jychuah
Copy link
Collaborator

jychuah commented Jul 6, 2019

I've looked into the issue - it looks like YASB 2.0 has changed their URL format. I'm working on a couple solutions right now to account for that. For the time being, please export to XWS from YASB 2. I'll close this issue when I fix it. Thanks for reporting!

@jychuah
Copy link
Collaborator

jychuah commented Jul 6, 2019

@oschrenk I've deployed support for importing the new YASB urls, so this should work. However, I'm seeing in the URL that you gave me there's a Whisper with Vader on board. My code doesn't check for squadron validity and requires an external service to make the YASB translation - is this what you expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants