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.

OmniMarkupPreviewer 404

See original GitHub issue

Hello,

When I open OmniMarkupPreviewer on Firefox, this is displayed:

Error: 404 Not Found

Sorry, the requested URL ‘http://127.0.0.1:51004/view/31’ caused an error:

'buffer_id(31) is not valid (closed or unsupported file format)'

**NOTE:** If you run multiple instances of Sublime Text, you may want to adjust
the `server_port` option in order to get this plugin work again.

I have Python 2.7.6 This is what it says in the console:

OmniMarkupPreviewer: [INFO] Launching web browser for http://127.0.0.1:51004/view/31
OmniMarkupPreviewer: [ERROR] Exception occured while rendering using MarkdownRenderer
  Traceback (most recent call last):
    File "./OmniMarkupLib/RendererManager.py", line 266, in render_text
    File "/Users/user/Library/Application Support/Sublime Text 2/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/MarkdownRenderer.py", line 48, in render
    extensions=self.extensions)
    File "./markdown/__init__.py", line 502, in markdown
    File "./markdown/__init__.py", line 161, in __init__
    for ext in extensions:
    File "./markdown/__init__.py", line 187, in registerExtensions
    pairs = [x.split("=") for x in ext_args.split(",")]
    File "./markdown/__init__.py", line 234, in build_extension
  UnboundLocalError: local variable 'module_name' referenced before assignment

Please help!

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:10

github_iconTop GitHub Comments

10reactions
pahkocommented, Nov 22, 2015

I faced this today, just change the port, it seems another server is already using it. Go to Preferences -> Package Settings -> OmniMarkupPreviewr -> Settings - User and change the port:

{
    "server_host": "0.0.0.0",
    "server_port": 9998
}

that should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sublimetext3 - OmniMarkupPreviewer 404 - Stack Overflow
Hello, I established OmniMarkupPreviewer. I open my page with Mediawiki markup and I press Ctrl + Alt + o to see it in...
Read more >
OmniMarkupPreviewer 404 Not Found 解決法 - Qiita
Error: 404 Not Found Sorry, the requested URL 'http://127.0.0.1:51004/view/27' caused an error: 'buffer_id(27) is not valid (closed or ...
Read more >
关于OmniMarkupPreviewer 404 - 简书
一直用Sublime Text 写Markdown,在前几天用OmniMarkupPreviewer 来预览文本的时候, Chrome 报了个错误给我: Error: 404 Not Found Sorry, ...
Read more >
OmniMarkupPreview 插件404 error on preview_杨瘦锅的博客
项目场景:使用Sublime 安装完OmniMarkupPreview插件。问题描述:提示:在浏览器预览时发生错误Error: 404 Not FoundSorry, the requested URL ...
Read more >
OmniMarkupPreviewer - Package Control
OmniMarkupPreviewer is a plugin for both Sublime Text 2 and Sublime Text 3 that preview markups in web browsers. OmniMarkupPreviewer renders markups into ......
Read more >

github_iconTop Related Medium Post

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