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.

Cannot access REST api.

See original GitHub issue

Upgraded to v2. Config file is:

port: 9411   
 config: {
        // customCommand: {},  // Optional, See "Using Custom Commands" below
        // customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
        showModuleApiMenu: true, // Optional, Enable the Module Controls menu
        apiKey: "",         // Optional, See API/README.md for details
    }

I can access and use web ui just fine.

From home directory I run: curl -X GET http://localhost:9411/api/monitor/off

Output:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/monitor/off</pre>
</body>
</html>

Is there something I need to do to enable the API?

I have installed/ updated manually and via the script with no failures.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:20

github_iconTop GitHub Comments

2reactions
Tim0815commented, Oct 9, 2020

I GOT IT!!! Finally. With a bit of debugging and inserting a lot of console.log statements. 😉 To all, who might have the same issue: Make sure, you do not have any more files or folders in "MagicMirror\modules" folder, than actually necessary!!! Cheers, Tim.

1reaction
cschwarz007commented, Mar 21, 2019

Same here - not working with error “cannot GET

	port: 8081,
	address: "192.168.101.79",
	{
		module: 'MMM-Remote-Control',
		disabled: false,			
	},
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't access REST API while using spring boot - Stack Overflow
I hope someone can help me :) After i start the spring boot app and send a request via curl to localhost:8080, there...
Read more >
REST API "Unable to connect to the remote server" - OutSystems
Hi everyone,. I am trying to consume an API, but I don't have any response in Outsystems. I've tried it in Postman and...
Read more >
Site Kit cannot access the WordPress REST API. Please ...
I installed a brand new version of WordPress and the first think I wanted to do was install SiteKit. Site Kit cannot access...
Read more >
Cannot Access REST API over HTTPS | GE Digital
When you try to access the Plant Applications REST API using HTTPS, the system does not connect to the REST API. Resolution: Configure...
Read more >
Cannot access the Reporting REST service. (serviceUrl = '/api ...
Solution. There are two possible reasons for this error: The REST Service is missing or not configured correctly: In order to identify that,...
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