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

unexpected server response (404) #2

Closed
hayzem opened this issue Sep 8, 2017 · 6 comments
Closed

unexpected server response (404) #2

hayzem opened this issue Sep 8, 2017 · 6 comments

Comments

@hayzem
Copy link

hayzem commented Sep 8, 2017

$ steemcli -t 'Is this working - Hello' ./steem-it-first-post.txt  --username xxxx --password xxxxx
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: unexpected server response (404)
    at ClientRequest.response (/usr/local/lib/node_modules/steemcli/node_modules/ws/lib/WebSocket.js:719:15)
    at ClientRequest.g (events.js:291:16)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at TLSSocket.socketOnData (_http_client.js:362:20)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at TLSSocket.Readable.push (_stream_readable.js:134:10)
    at TLSWrap.onread (net.js:551:20)
@peixotorms
Copy link

+1

@thebestion
Copy link

thebestion commented Sep 29, 2017

i have the same promblem

unexpected server response (404) <- can i change the steem server somewhere

@nannal
Copy link

nannal commented Sep 30, 2017

Same issue,

Host appears to be calling out to 34.200.92.50 which steemit.com does resolve to.

Code also lists steemit.com in certain files and not IP addresses meaning DNS is used, likely a change on steemit's side over the past year (since last commit).

@thebestion
Copy link

you have any solution to fix it?
if yes, then please which file i have to change.
i saw in https://github.com/yamadapc/steemcli/blob/master/dist/index.js
line 31 /-/ return https://**steemit.com**/${ req.parentPermalink }/@${ req.author }/${ req.permalink };
there is no IP
thanks

@yamadapc
Copy link
Owner

This was just using a really old development version of the steem NPM package. Thank you for reporting, let me know if version 1.0.3 isn't fixed

@thebestion
Copy link

Now it is working with version 1.0.7 :)) 👍 great job. thanks for this piece of code

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

5 participants