elective-stereophonic
elective-stereophonic
Trouble using testnet singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Author Topic: Trouble using testnet  (Read 1210 times)

ElHoyto

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 2
    • View Profile
Trouble using testnet
« on: June 18, 2015, 09:20:10 am »

When I connect to the NXT testnet using localhost it resolves all my requests just fine, but the Jay plugin tries to go through the jnxt domain. That works for the actual NXT block chain but not for the testnet, or at least I kept getting an "unknown account" error for accounts that showed up fine if I put the localhost request directly in a browser. If I switch the node to localhost then I get a "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." error.

Thoughts?

Thanks.
Logged

jones

  • Board Moderator
  • Hero Member
  • ****
  • Karma: +310/-8
  • Offline Offline
  • Posts: 1043
  • write code not war
    • View Profile
    • jNxt
Re: Trouble using testnet
« Reply #1 on: June 18, 2015, 04:53:03 pm »

When I connect to the NXT testnet using localhost it resolves all my requests just fine, but the Jay plugin tries to go through the jnxt domain. That works for the actual NXT block chain but not for the testnet, or at least I kept getting an "unknown account" error for accounts that showed up fine if I put the localhost request directly in a browser. If I switch the node to localhost then I get a "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." error.

Thoughts?

Thanks.

When trying to connect to a node with Jay, that node must have CORS enabled because of a javascript rule that it needs special circumstances to be able to make requests to different domains.

Try changing nxt.apiServerCORS parameter in nxt-default.properties to true. This should allow Jay to make the connection to your node.

The jnxt testnet node at http://jnxt.org:6876 is on a different chain than the traditional testnet chain because it runs an nxt demo. accounts demo00 to demo50 have 200'000 nxt in them for testing and demoing. I've found this to be really great for Jay testing because you can easily import a demonet account with lots of nxt just by setting your broadcast node to jnxt.org and testnet on.

This happens because javascript gets mad whenever you make requests from one domain to another, and it recognizes file:// to be different from localhost:6876

You can also just change your broadcast node to
Logged
-- Jones NXT-RJU8-JSNR-H9J4-2KWKY
 

elective-stereophonic
elective-stereophonic
assembly
assembly