Jira Cloud platform - Getting Started npm 404 connection error

Hey guys,

i am very new to atlassian development and acutally I am really struggling to get the “Getting Started” Tutorial to work.
Literally following this guide:
https://developer.atlassian.com/cloud/jira/platform/getting-started/

I created two text documents (json and html) and followed the guide. Afterwards I am setting http-server to the port 8000 and try to access my documents via localhost.

Sadly the localhost is not loading. Please see the error message from my cmd:

C:\Users\chris\Desktop\JiraProjects\testProjekt>http-server -p 8000 Starting up http-server, serving /
Available on: http//192.168.178.67:8000 http//127.0.0.1:8000
Hit CTRL-C to stop the server

And now afterwards trying to access:
http://localhost:8000/atlassian-connect.json and /helloworld.html
yields the following error messages:

[2020-03-24T21:42:41.037Z] “GET /atlassian-connect.json” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36” (node:9228) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[2020-03-24T21:42:41.050Z] “GET /atlassian-connect.json” Error (404): “Not found”
[2020-03-24T21:43:41.834Z] “GET /helloworld.html” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
[2020-03-24T21:44:17.872Z] “GET /helloworld.html” Error (404): “Not found”

Every help is greatly appreciated. What I tried/check on:

  • The cmd path is correct (same as html and json file)
  • I manually opened the port 8000 in my firewall
  • Confirmed correct installation if npm

Cheers
Christian

Okay, i finally figured it out.

The mistake is actually quite ridiculous.

Windows 10 did not let me change to the data type I wanted.
E.g. meaning I had atlassian-connect.json.txt as a type instead of atlassian-connect.json

Anyway, cheers
Christian