Just finished setting up InvoiceNinja V5 on my Debian 10 VM, after many problems ive now got my V4 data migrated and the PDF view working.
Ive found another problem im stuck on and im hoping someone can help.
Under “Settings/Invoice Design” if i select Invoice Design or any other design list i get a empty list.
The templates must be there as viewing a invoice displays the default template design but i cannot select or change the design.
Now when i run curl -X POST https://InvoiceNinja_URL/public/api/v1/login?first_load=true&include_static=true -H “Content-Type:application/json”
i get
[1] 12791
-bash: -H: command not found
sys@in5:/usr/share/nginx/invoiceninja$ <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow,noarchive" />
<title>An Error Occurred: Method Not Allowed</title>
<style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "405 Method Not Allowed".</h2>
<p>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</p>
</div>
</body>
</html>^C
[1]+ Done curl -X POST https://InvoiceNinja_URL/public/api/v1/login?first_load=true
[/quote]
ive tried it as one command and still errors curl -X POST https://MYURL/public/api/v1/login?first_load=true&include_static=true -H “Content-Type:application/json” -d ‘{“email":"SMTP_Email_Address”,“password”:“SMTP_PASSWORD”}’ -H “X-API-SECRET:INVOICENINJA_API_TOKEN” -H “X-Requested-With: XMLHttpRequest”
Ive also found the generated API token i generated has disappeared from the GUI
Not sure how to check the MySQL db for this
ive tried with single quote and double quote and no quotes
Silly question but am i right the API token is the one generated in the GUI under /Settings/Account Management/API Tokens