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

Can not use kajax #294

Open
up7down8 opened this issue Dec 25, 2024 · 0 comments
Open

Can not use kajax #294

up7down8 opened this issue Dec 25, 2024 · 0 comments

Comments

@up7down8
Copy link

This is my code:

import karax/kajax
proc login() =
  let body = """{"telephone":"aaa","password":"bbb.","method":"0","platform":"0"}""".cstring
  ajaxPost("http://127.0.0.1:8866/api/auth/login", @[(cstring"Content-Type", cstring"application/json")], body, proc (status: int, response: cstring) =
    echo response
  )

when isMainModule:
  login()

the error info:

Uncaught TypeError: this.this0 is null

my version info:

Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2024-12-25
Copyright (c) 2006-2024 by Andreas Rumpf

karax 1.3.3
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

1 participant