Skip to content

Error when creating Braintree payment gateway #188

@johnwslongland

Description

@johnwslongland

Information about bug

An error occurs when I try and configure a Braintree payment gateway

Steps..

  1. Log in to erpnext
  2. Goto Braintree settings
  3. click top right "Add braintree settings : this creates a new doc
  4. Create Braintree sanddbox account and obtain credentials
  5. Enter obtained credentials on new braintree settings doc
  6. Open browser console
  7. When entering the "Private key" an error sound is generated
  8. An error is displayed on the browser console
    Please see attached screenshot of when it happens.

Browser console errors are indicated in error window below

Image

Module

other

Version

Frappe Framework: v16.0.0-dev (HEAD)

ERPNext: v16.0.0-dev (HEAD)

Payments: v0.0.1 (HEAD)

Frappe HR: v16.0.0-dev (HEAD)

Marley Health: v16.0.0-dev (HEAD)

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

XHRPOST
https://tc005.c.frappe.cloud/api/method/frappe.core.doctype.user.user.test_password_strength
[HTTP/2 500  33ms]



SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
    report_error request.js:533
    500 request.js:227
    call request.js:361
    jQuery 6
    call request.js:284
    call request.js:111
    get_password_strength password.js:71
    make_input password.js:32
    o utils.js:893
    setTimeout handler*debounce/< utils.js:897
    jQuery 2
request.js:368:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions