elective-stereophonic
elective-stereophonic
Problem with opening wallet trough API
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.1 Upgrade before block 2870000 is mandatory!

Author Topic: Problem with opening wallet trough API  (Read 928 times)

void

  • Jr. Member
  • **
  • Karma: +6/-3
  • Offline Offline
  • Posts: 40
    • View Profile
Problem with opening wallet trough API
« on: April 01, 2016, 04:26:03 pm »

I'm trying to open my wallet trough API. I'm getting this message error: {"errorDescription":"Not allowed","errorCode":7}

I've this settings:

nxt.myAddress=x.x.x.x
nxt.myPlatform=XXX
nxt.myHallmark=XXX
nxt.apiServerHost=0.0.0.0
nxt.disableAdminPassword=true # this I inserted because I thought its source of the problem
nxt.apiFrameOptionsSameOrigin=false # this I inserted because I thought its source of the problem
nxt.uiServerHost=127.0.0.1
nxt.maxNumberOfInboundConnections=100
nxt.maxNumberOfOutboundConnections=25
nxt.maxNumberOfConnectedPublicPeers=10

Everything else is like in nxt-default.properties.

I'm opening it with command:

wget -qO- --post-data 'requestType=startForging&secretPhrase=MY_SECRET_PASS' 'http://localhost:7876/nxt'

Few months ago this was working like a charm. Now there is error you see above.

Any thoughts?
Logged

void

  • Jr. Member
  • **
  • Karma: +6/-3
  • Offline Offline
  • Posts: 40
    • View Profile
Re: Problem with opening wallet trough API
« Reply #1 on: April 01, 2016, 06:26:15 pm »

anyone? Core Devs? Is there any support here?
Logged

void

  • Jr. Member
  • **
  • Karma: +6/-3
  • Offline Offline
  • Posts: 40
    • View Profile
Re: Problem with opening wallet trough API
« Reply #2 on: April 01, 2016, 06:57:49 pm »

And you wanna create lead crypto... Good luck with that.
Logged

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Problem with opening wallet trough API
« Reply #3 on: April 01, 2016, 07:45:26 pm »

Do you have nxt.allowedBotHosts set?
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

void

  • Jr. Member
  • **
  • Karma: +6/-3
  • Offline Offline
  • Posts: 40
    • View Profile
Re: Problem with opening wallet trough API
« Reply #4 on: April 01, 2016, 08:10:10 pm »

Do you have nxt.allowedBotHosts set?
Yes, at default (nxt.allowedBotHosts=127.0.0.1; localhost; [0:0:0:0:0:0:0:1];). As I said, those settings that I posted here were from nxt.properties.

Rest of it:
https://gist.github.com/anonymous/16bee02f2bda78695e3279c881a6d6b1
« Last Edit: April 01, 2016, 08:16:25 pm by void »
Logged

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Problem with opening wallet trough API
« Reply #5 on: April 01, 2016, 08:36:43 pm »

This properties file is exactly the same as the default. It should work with it, and I just tried that wget command. Perhaps you have some other properties file too which it is reading. What does it say for nxt.allowedBotHosts in the log file when it starts?
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: Problem with opening wallet trough API
« Reply #6 on: April 01, 2016, 08:42:24 pm »

And you wanna create lead crypto... Good luck with that.

yeah... these comments do not help you getting more support...
 

elective-stereophonic
elective-stereophonic
assembly
assembly