Hi,
I’m trying to implement the subscription feature using Ghost version 3.8.0. I’ve implemented correctly the subscription form in the following way:
<form class="signup-form" data-members-form="subscribe">
<fieldset>
<input data-members-email="" type="email" placeholder="Type your email..." required="true" autocomplete="false" class="m-input in-subscribe-section">
<button class="m-button outlined" type="submit">
<span class="button-content">Subscribe</span>
</button>
</fieldset>
</form>
When I click the submit button I receive a 500 message. The request made by the client side implementation of ghost is:
curl 'https://hostname/ghost/api/canary/members/send-magic-link/' -H 'authority:hostname' -H 'pragma: no-cache' -H 'cache-control: no-cache' -H 'sec-fetch-dest: empty' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36' -H 'content-type: application/json' -H 'accept: */*' -H 'origin: https://hostname' -H 'sec-fetch-site: same-origin' -H 'sec-fetch-mode: cors' -H 'referer: https://hostname/signup/?' -H 'accept-language: en,it;q=0.9,it-IT;q=0.8,en-US;q=0.7' -H 'cookie: ghost-admin-api-session=s%3ABTp6Bd1EAlNRHm0Q9KDgCsWpgtI0O-.Jqk%2FGCLH285xGtFv%2FB0VZ3OzsRerzvn7tf8sAh%2BoAUY; _ga=GA1.2.1829283525.1577363408; __smToken=ZzNSxhFaQW1WTyLI031UouvL; __smUser=4d965b5e-6455-4724-84ba-8de722a5deb7; wp-settings-1=editor%3Dtinymce%26libraryContent%3Dbrowse%26posts_list_mode%3Dlist%26align%3Dcenter%26imgsize%3Dlarge%26urlbutton%3Dnone%26mfold%3Do%26unfold%3D1%26post_dfw%3Doff%26wplink%3D1%26hidetb%3D1%26advImgDetails%3Dshow%26editor_expand%3Don%26ed_size%3D3369; wp-settings-time-1=1577642791; __smVID=caade4497cb9244684817065127561d456bfe780f256656d199a497a3e4db5ab; sumogrowemaillist=true; _gid=GA1.2.42597474.1582919648; __smListBuilderShown=Sun%20Mar%2001%202020%2017:38:34%20GMT+0000%20(Greenwich%20Mean%20Time); __stripe_mid=75f21fcf-4be1-4bb0-a39b-30a6a92c794e; __stripe_sid=b66870dd-5c03-4564-80d3-aebf939ea44f' --data-binary '{"email":"user.email@gmail.com","emailType":"subscribe","labels":[]}' --compressed
Just wondering if I’m missing something, or is a bug of this beta feature