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

Notification messages fetch error SyntaxError: Unexpected token T in JSON at position 0 #4750

Closed
SuperMaZingCoder opened this issue Jul 23, 2020 · 21 comments · Fixed by #5328
Labels
⌨️ CLI tool Issue or PR related to CLI tool

Comments

@SuperMaZingCoder
Copy link

> hyper install hyper-dracula
Disabling Chromium GPU blacklist
running in prod mode
electron will open file:///usr/lib/hyper/resources/app.asar/index.html
Setting Hyper as default client for ssh:// protocol
Checking for notification messages
Notification messages fetch error SyntaxError: Unexpected token T in JSON at position 0
    at JSON.parse (<anonymous>)
    at consumeBody.call.then.buffer (/usr/lib/hyper/resources/app.asar/node_modules/electron-fetch/lib/index.js:240:55)
    at process._tickCallback (internal/process/next_tick.js:68:7)

OS: Manjaro Linux
Installation: pamac build hyper
I have seen other issues, but these seem to be because of Windows WSL limitations where I'm using Konsole on Manjaro KDE.

@allywilson
Copy link

Same issue here.
CentOS 8
AppImage 3.0.2 (stable).


$ hyper install hyper-dracula
Disabling Chromium GPU blacklist
running in prod mode
electron will open file:///tmp/.mount_hyper-ayjE5l/resources/app.asar/index.html
Setting Hyper as default client for ssh:// protocol
Checking for notification messages
Notification messages fetch error SyntaxError: Unexpected token T in JSON at position 0
    at JSON.parse (<anonymous>)
    at consumeBody.call.then.buffer (/tmp/.mount_hyper-ayjE5l/resources/app.asar/node_modules/electron-fetch/lib/index.js:240:55)
    at process._tickCallback (internal/process/next_tick.js:68:7)

It also opens a new hyper window, which doesn't do anything, but if I close it then the original window finally goes back to prompt, so must be expecting something from it...

@storenth
Copy link

storenth commented Jul 24, 2020

The same issue caught when hyper -v called on macOS Catalina 10.15.6 (19G73):
Снимок экрана 2020-07-24 в 17 36 58
caused opened new hyper instance.

@perzanko
Copy link

Same issue here ✋
OS: Ubuntu 20.04.1,
Ver: 3.0.2

@cesar-cb
Copy link

I can install plugins without problems using version 3.1.0-canary.4 (pre-release). But I keep struggling with version 3.0.2

OS: Arch Linux (5.8.1-arch1-1)

@mat-ale
Copy link

mat-ale commented Sep 23, 2020

Same here.

  • KDE Neon 5.19 (based on Ubuntu 20.04)
  • Hyper v3.0.2 version .AppImage

edit:

I confirm the problem is only with the .AppImage version. Installed the .deb and it just works fine (same configs).

@martonlederer
Copy link

Same. Arch Linux manjaro

@datadu-de
Copy link

ditto on artix

@be-krishna
Copy link

be-krishna commented Nov 20, 2020

Same. Pop OS 20.10.

Edit:
Appimage v3.0.2 was causing problem.

Fix: .deb file from release fixed my problem.

@gponty
Copy link

gponty commented Nov 23, 2020

Same here, manjaro.

@rastydnb
Copy link

rastydnb commented Jan 19, 2021

Same here, manjar
Hyper version 3.0.2

@kangxiaoju
Copy link

Same here, arch
Hyper version 3.0.2

@allywilson
Copy link

Just checked v3.1.0-canary.4 still the same on that (CentOS 8 Stream).

@LabhanshAgrawal
Copy link
Collaborator

This isn't something which will cause anyone issues. It's just failing to fetch the notifications as the server is down since some time, it doesn't impact anything else.

@allywilson
Copy link

It stops any themes from being installed and used. I'd say that's an issue.

@LabhanshAgrawal
Copy link
Collaborator

LabhanshAgrawal commented Feb 2, 2021

I'm talking about the error Notification messages fetch error SyntaxError: Unexpected token T in JSON at position 0 from the title.
If you're facing trouble in installing plugins then that's because the cli is not setup properly
open hyper first and then add cli to path from the plugins (tools if you're on latest ci build) menu option.
try with latest build from https://github.com/vercel/hyper/actions/runs/527838058#artifacts
Confirm that you've it setup properly by running hyper version

Or you can also add the plugin to the config file and hyper will install it automatically.

@LabhanshAgrawal
Copy link
Collaborator

Also as someone has mentioned earlier that they are facing issues with AppImage, try with maybe rpm if you face the same.
If it's working on other builds and not on appimage then that can be tracked in a separate issue.

@allywilson
Copy link

Thanks, the RPM works for me. I'd have expected a known issues section or similar for the AppImage though. This has been an issue for ~6 months at least.

@LabhanshAgrawal
Copy link
Collaborator

@allywilson did you try using the add hyper cli to path option from the tools menu when you had the appimage install?
if not can you please try that once

@LabhanshAgrawal
Copy link
Collaborator

Also please install from the ci link from my earlier comment, the release is too old at this point, maybe it's fixed since then.

@docbobo
Copy link

docbobo commented Feb 12, 2021

Just installed Hyper AppImage and encountered the same problem. Using add hyper cli to path, I get a notification that says "Command is added in PATH only at package installation. Please reinstall."

@LabhanshAgrawal
Copy link
Collaborator

LabhanshAgrawal commented Feb 13, 2021

@docbobo can you run this once and check

mkdir -p /usr/local/bin
ln -sf '/opt/Hyper/resources/bin/hyper' '/usr/local/bin/hyper'

Edit: The cli is not usable currently with AppImage, have created a new issue for that #5307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌨️ CLI tool Issue or PR related to CLI tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.