Routing II - Stuck At Step 1 with Error

I’m working on Routing II and I can’t get past Step 1. I just get a loading icon and after a few minutes, I get the error below.

Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
e[33mWARN [karma]: e[39mPort 9876 in use

I’ve already tried restarting my browser, using a different browser, and restarting the exercise but none of them fixed the problem.

Here’s my code from app.js

var app = angular.module('GalleryApp', ['ngRoute']);

app.config(function ($routeProvider) { 
    .when('/', { 
      controller: 'HomeController', 
      templateUrl: 'views/home.html' 
  	.when('/photos/:id', {
  		controller: 'PhotoController',
    	templateUrl: 'views/photo.html'
      redirectTo: '/' 


In this article

The problem was somewhere in cookies. 
After I clear cookie it goes ok.
 I use Auth0 service for logging. 
Maybe the problem is somewhere in their angularjs sdk 
1 Like

Thanks! in my case I just switched my browser to Microsoft Edge for this particular exercise!

it works!!! Thank you!!!

Write the code correctly as written in the screenshot and click on localhost https://localhost:8000 either it is visible or not Uploading…
It works for me . I hope it will work for you too

1 Like