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.

Request suggested debug methodology for "MISSING_CONFIG_BLOCK" error

See original GitHub issue

Firstly, can I thank Alex and Eduardo for all the amazing work on Staticman. I can see Alex has spent an amazing amount of time helping people debug their builds, so thank you for that work and also if you have a donation link I’d be happy to buy you a coffee:-)

I’ve just built Staticman using Travis Down’s really thorough guide (and thanks to Travis as well!) at https://travisdowns.github.io/blog/2020/02/05/now-with-comments.html

I’m now live but have not yet registered for captcha so that’s still disabled in the config file.

On comment submission I’m getting an error:

success	false
message	"Error whilst parsing Staticman config file"
rawError	
_smErrorCode	"MISSING_CONFIG_BLOCK"
errorCode	"MISSING_CONFIG_BLOCK"

Response headers:

response_headers

Can you suggest the best approach to debugging this?

Also, is there any way for the comment system to work with no client-side javascript as this might make debugging a little easier?

Thanks again and all the best:-) Dug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
alexwaibelcommented, Apr 4, 2020

@lrdj thank you for your kind words. I maintain this project in my free time so it’s always nice to hear positive feedback from users. @travisdowns is correct in his suggestions. The error handler fixes he references are indeed only in the dev branch at the moment, so I’d recommend deploying from that for now. If you switch to viewing the README on the dev branch, the deploy to Heroku button is smart and it’ll deploy the dev branch instead.

As far as making requests without JavaScript, you should be able to submit comments using a plain HTML form. See step 3 on this page for an example.

You can monitor #346 to see when these fixes are in master.

0reactions
alexwaibelcommented, Apr 15, 2020

It seems the original issue here has been resolved so I’m going to close this issue. Feel free to continue to ask any follow up questions here and I’ll do my best to address them!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging methods and error types - HubSpot Developers
Understanding how to debug and look into errors when developing websites on the HubSpot CMS.
Read more >
Debugging On-Demand Resources - Apple Developer
The best approach to finding the error is to compare the tags in the NSBundleResourceRequest object against the tags in the project.
Read more >
CS 312 Lecture 26 Debugging Techniques
A better approach is to explore the code using a divide-and-conquer approach, to quickly pin down the bug. For example, starting from a...
Read more >
How to Debug Your Code - Codecademy
Another method of debugging your code is using error handling. Code that does not use error handling will often crash when it encounters...
Read more >
Debugging configurations for Python apps in Visual Studio Code
If you're looking to debug a web application using Flask, Django or FastAPI, the Python extension provides dynamically created debug configurations based on ......
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