Code Monkey home page Code Monkey logo

Comments (30)

VivanVatsa avatar VivanVatsa commented on June 6, 2024 1

well, I cleared cache memory and optimized by disk space and restarted vscode and it seems to work fine now.
but if the problem arises again will surely let you know @bar9

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024 1

It looks like the same issue with dns that Vivan had. This is very strange.

@bar9 do you think Google has countries in some sort of ban? I wouldn't think so, but we have now two users with dns issues.

@mrbinary71 Can you add an entry in /etc/hosts? And try again.

from vscode-stories.

mhd-akbari avatar mhd-akbari commented on June 6, 2024 1

I add this entry in /etc/hosts, and It's work fine, thanks.
216.58.194.52 vscode-stories-295306.uk.r.appspot.com
@TheFern2

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

My first guess is that you still have Ben's extension installed, and that would make sense since that server is offline now. You need to install the new one after the repo was transferred to @bar9 Roland.

image

The extension is working fine for me right now.

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

@benawad @bar9 can you guys come to an agreement and unpublish 2.22.0 extension, just to avoid creating confusion in the future.

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

@TheFern2 I'm aware of the fact that the whole code has been shifted to the new one and I did install the correct v2.22.1 from it
still, the same message is displayed, unable to fetch data: error occurred

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Ok, can you give us a bit more information, we can't really help just from the fact that you say is not working on your machine alone.

  • Did it worked previously and now it stopped working?
  • Do you have an exact date when it stopped working, if it worked previously?
  • OS
  • VScode version

Can you try uninstalling it, and installing it again if you haven't already tried that.

Lastly can you try the below in your browser, you should get a json response:

https://vscode-stories-295306.uk.r.appspot.com/text-stories/hot

from vscode-stories.

benawad avatar benawad commented on June 6, 2024

@bar9 are you good with me unpublishing it?

from vscode-stories.

bar9 avatar bar9 commented on June 6, 2024

@benawad Yeah, makes sense.
@VivanVatsa can you dm me indicating time and date when you tried loading? I can take a look in the logs, check if I see anything there

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

@bar9 it might be difficult for me to recall when it actually started to show this behavior, but the problem has been persistent for like 10 days or more now
@TheFern2 I did try reinstalling / uninstalling / removing all versions and then a fair install, still no luck.

  • yes it was working before and now it stopped working
  • no I don't have any exact/particular info about when it stopped working, really regretting that now
  • Windows 10
  • vscode v1.52.1

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

well, I cleared cache memory and optimized by disk space and restarted vscode and it seems to work fine now.
but if the problem arises again will surely let you know @bar9

Thanks for the info, we'll keep an eye on our windows users.

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

I am experiencing the same problem once again and the time for it is right after my comment of it started working again. I dont know what's the problem, so please help.
so time would be 7 hours ago

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

@bar9 do you think this is a server issue?
@VivanVatsa did you tried calling the api with previous url provided?

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

yes @TheFern2 I tried that link and still, this message is displayed
it was working for a while, when I closed this issue, then within a time frame of 10 mins it again started showing the same error message!

image

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Yeah I'm beginning to think this issue is related to the changes @bar9 did on the api server during the last week or so.

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Just out of curiosity, both stories panels show fetch error? The sidebar panel, and the small split panel?

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

can you be precise, which all panel @TheFern2 are you talking about?
their is this "s" logo where I click to see all stories, just the usual way.
that's where this message is displayed. and their is this record story (beta) that's the only 2 things displayed regarding vscode stories

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

the s logo is the sidebar panel, but there is also a smaller panel on the file explorer.

image

from vscode-stories.

Bukii avatar Bukii commented on June 6, 2024

Yeah I'm beginning to think this issue is related to the changes @bar9 did on the api server during the last week or so.

But wouldn't that mean, it isn't working for anyone, tho?

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Yeah I dunno what's going on, mine works fine on Linux. I don't use it much at work where I have Windows although I did noticed a very slow fetch one time on Windows.

So it is possible that the fetch is timing out.

from vscode-stories.

bar9 avatar bar9 commented on June 6, 2024

@VivanVatsa I've increased memory of the database. Did that make any difference on your end? Did you get errors lately?

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

no luck @bar9 still getting the same error.
accessing from the main extension and the panel. Both display the same error.
really difficult to find what is causing this problem?

image

image

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Can you do the following command in cmd prompt, and post results. Run it a few times just to see if time is really high. I have 9ms and I am seeing a long delay when loading stories which I don't think I saw this previously:

ping vscode-stories-295306.uk.r.appspot.com

Either way I am suspecting timeout on line 16 await fetch Sidebar.svelte isn't completing, and then it goes into the catch.

https://github.com/ide-stories/vscode-stories/blob/master/svelte-stuff/components/Sidebar.svelte#L16

Just a few more questions:

  • Can you authenticate? ctrl + shift + p, Stories: Authenticate
  • Can you upload a story?

These last two items will tell us if you have at least have connection to the api server, and loading 21 stories on the sidebar is really just timing out in which case we really need to figure out how to optimize that route.

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

the ping displays:

>> ping vscode-stories-295306.uk.r.appspot.com
Ping request could not find host vscode-stories-295306.uk.r.appspot.com. Please check the name and try again.

the authentication is working fine when I authenticate it manually as you suggested
but when I try to record and upload it, this is what is displayed even when I have opened a file to record

image

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Ok so we have two problems here:

  • The ping should definitely ping at all times. Something is wrong with either your firewall or ISP provider. This is really odd.

image

  • If you have a file opened, and is giving you that error that's another weird issue, but let's focus on the first issue for now.

  • can you ping 216.58.194.52?

  • can you try to use a vpn, then try to load stories on the sidebar panel?

from vscode-stories.

VivanVatsa avatar VivanVatsa commented on June 6, 2024

did the ping with IP address
the result is this:
image

for the next step, will use VPN to load stories sure!

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

This issue has been resolved. It looks like @VivanVatsa has some dns issues, but we've added an entry in the hosts file to get the extension working properly, but normally this would not be required if dns was resolving properly to the server address.

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

@mrbinary71 can you follow the ping commands on this post. Did you get it sorted out?

from vscode-stories.

mhd-akbari avatar mhd-akbari commented on June 6, 2024

t1

@TheFern2

from vscode-stories.

TheFern2 avatar TheFern2 commented on June 6, 2024

Nice, you're welcome, I really don't know why dns is not resolving, but we'll try to make a note about this once we setup docs folder in the repo.

from vscode-stories.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.