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.

Mirage is not working with ember-electron

See original GitHub issue

If you run ember electron with Mirage, you get an error message of the form:

Mirage: Your Ember app tried to GET '/radio/memory-blocks', but there was no route defined to handle this request. Define a route that matches this path in your mirage/config.js file. Did you forget to add your namespace?unhandledRequest @ server.js:76

Running ember server works just fine.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
hugoruscitticommented, Feb 9, 2016

I have a same issue today, i think it’s related to file:// urls…

Anyway, it’s work for me when i sets the “urlPrefix” in the first line of mirage/config.js, like this:

export default function() {
  this.urlPrefix = '/';

  // this.get('/projects');
[etc...]

maybe it’s works for you too @BryanHunt?

cc: @felixrieseberg

1reaction
felixriesebergcommented, Sep 30, 2016

I’m happy to promise that we’ll always have that property set to true if running in Electron 👍

On Thursday, September 29, 2016, Aidan Nulman notifications@github.com wrote:

@acorncom https://github.com/acorncom I think that can be done, although it creates a weak dep on ember-electron via process.env.EMBER_CLI_ELECTRON.

Been meaning to do this all week, but meetings popped up that were a priority. I expect to ship a PR by Mon

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/samselikoff/ember-cli-mirage/issues/497#issuecomment-250626448, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXFb7RkuV2MwD_ZEv33NLNZ3mYQlYgWks5qvFKmgaJpZM4HB4Z4 .

All the best, Felix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mirage: Add custom host to adapter issue - Ember.JS
I'm using Ember-cli-mirage to mock data. I want to slowly integrate parts of the real api which is located at http://localhost:8000.
Read more >
ember test --serve with mirage does not work #1036 - GitHub
Hello, I just discovered that when i run tests from embercli using "ember test --serve" it spawns with some strange randomly generated url ......
Read more >
Cli mirage routes not working in acceptace test - Stack Overflow
I was trying acceptance test for login page, using cli mirage as mock server. Routes defined in a mirage works ...
Read more >
Mitsubishi Mirage G4 Heater Is Not Working - RepairPal
The most common reasons a Mitsubishi Mirage G4 heater isn't working are a broken heater blower motor, a problem with the thermostat, or...
Read more >
Fuse box location and diagrams: Mitsubishi Mirage (2014-2018)
Fuse box location and diagrams: Mitsubishi Mirage (2014-2018) ... mitsubishi mirage ac compressor not working electrical problem.
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