question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{} and 500 response

See original GitHub issue

I setup two test repos. on on an account with uppercase in the path and one with out. both with the example config for v2. when trying to post I get a page with { } with a resonse of 500, and no PR

https://github.com/bladefirelight2/staticmantest

<form action="https://api.staticman.net/v2/entry/bladefirelight2/staticmantest/master/comments" method="POST">
   <input name="options[origin]" type="hidden" value="http://localhost:4000/test.html"> 
  <input name="options[slug]" type="hidden" value="">
  <label><input name="fields[name]" type="text">Name</label>
  <label><input name="fields[email]" type="email">E-mail</label>
  <label><textarea name="fields[message]"></textarea>Message</label>
  
  <button type="submit">Go!</button>
</form>

https://github.com/BladeFireLight/staticmantest

<form action="https://api.staticman.net/v2/entry/BladeFireLight/staticmantest/master/comments" method="POST">
   <input name="options[origin]" type="hidden" value="http://localhost:4000/test.html"> 
  <input name="options[slug]" type="hidden" value="">
  <label><input name="fields[name]" type="text">Name</label>
  <label><input name="fields[email]" type="email">E-mail</label>
  <label><textarea name="fields[message]"></textarea>Message</label>
  
  <button type="submit">Go!</button>
</form>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BladeFireLightcommented, Feb 1, 2017

Yes. mirrored your sites config as to what fields were in use and then my test worked.

Thanks.

0reactions
eduardoboucascommented, Feb 26, 2017

I’d like to move all the feedback around email notifications to #42 — could you please post any updates there?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an ...
Read more >
HTTP 500 Internal Server Error: What It Means & How to Fix It
A 500 internal server error is, as the name implies, a general problem with the website's server. More than likely, this means there's...
Read more >
500 Internal Server Error | Apigee Edge
The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from ......
Read more >
List of HTTP status codes
This is a list of Hypertext Transfer Protocol (HTTP) response status codes. ... 500 Internal Server Error: A generic error message, given when...
Read more >
How to Fix a 500 Internal Server Error
The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website's server, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found