Home Forums Newsletter Developers Database Error Using JSON Subscribe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232156
    MLAbram
    Participant

    I am receiving an error when attempting to use the code below. If I remove the profile section of the code, it works fine. Am I using the incorrect syntax for the profile section? I am using Newsletter v6.2.1.

    Error:
    Database error. If you were saving a newsletter try a table upgrade from the status panel.

    Code:
    curl -X POST -H “Content-Type: application/json” https://www.example.com/wp-json/newsletter/v1/subscribe -d ‘{“email”:”firstname.lastname@examle.com”, “lists”:[1,3], “profile”:[“Profile 1″,”Profile 2”]}’

    A couple of sources that I’ve referenced to troubleshoot.

    Newsletter API

    Lists

    #238250
    Stefano
    Keymaster

    Hi, the error should be logged in the log files. See the status panel for “store-xxxx.log”, something should be reported there.

    Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.