{"action":"created","issue":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/179","repository_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine","labels_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/179/comments","events_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/179/events","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/179","id":121855400,"number":179,"title":"Is something broken?","user":{"login":"Yannick86","id":11870681,"avatar_url":"https://avatars.githubusercontent.com/u/11870681?v=3","gravatar_id":"","url":"https://api.github.com/users/Yannick86","html_url":"https://github.com/Yannick86","followers_url":"https://api.github.com/users/Yannick86/followers","following_url":"https://api.github.com/users/Yannick86/following{/other_user}","gists_url":"https://api.github.com/users/Yannick86/gists{/gist_id}","starred_url":"https://api.github.com/users/Yannick86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yannick86/subscriptions","organizations_url":"https://api.github.com/users/Yannick86/orgs","repos_url":"https://api.github.com/users/Yannick86/repos","events_url":"https://api.github.com/users/Yannick86/events{/privacy}","received_events_url":"https://api.github.com/users/Yannick86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-12-12T13:32:03Z","updated_at":"2016-09-24T18:46:05Z","closed_at":"2015-12-14T20:07:21Z","body":"For some reason I keep getting JS error \"invalid character\" for every sample on http://www.liedman.net/leaflet-routing-machine/#getting-started\r\n\r\nI've come to check this because in my application I get the same error since today. My application is still in a test phase at the moment and I haven't touched it for 2 weeks ...\r\n\r\nI've tried the samples on IE & Chrome on 2 different PC's .. same problem persists.\r\n\r\nAnyone got a clue what is going on?\r\n\r\nKind regards,\r\nYannick"},"comment":{"url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/comments/249380897","html_url":"https://github.com/perliedman/leaflet-routing-machine/issues/179#issuecomment-249380897","issue_url":"https://api.github.com/repos/perliedman/leaflet-routing-machine/issues/179","id":249380897,"user":{"login":"rossanag","id":1948071,"avatar_url":"https://avatars.githubusercontent.com/u/1948071?v=3","gravatar_id":"","url":"https://api.github.com/users/rossanag","html_url":"https://github.com/rossanag","followers_url":"https://api.github.com/users/rossanag/followers","following_url":"https://api.github.com/users/rossanag/following{/other_user}","gists_url":"https://api.github.com/users/rossanag/gists{/gist_id}","starred_url":"https://api.github.com/users/rossanag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossanag/subscriptions","organizations_url":"https://api.github.com/users/rossanag/orgs","repos_url":"https://api.github.com/users/rossanag/repos","events_url":"https://api.github.com/users/rossanag/events{/privacy}","received_events_url":"https://api.github.com/users/rossanag/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T18:46:05Z","updated_at":"2016-09-24T18:46:05Z","body":"Well again facing the same problem. I am working with leaflet routing machine version 2.6.2.\r\nI don't know if OSRM server is down again. The error I got is:\r\n\r\n_XMLHttpRequest cannot load https://router.project-osrm.org/viaroute?instructions=true&alt=true&loc=-34.9137181,-56.160451099999996&loc=-34.913736705537715,-56.1615514755249. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.bicimap.uy' is therefore not allowed access.\r\ncontrolrouting.js:1 Objectmessage: \"HTTP request failed: [object XMLHttpRequestProgressEvent]\"status: -1__proto__: Object_\r\n\r\nThis is the code, it finds the route between 2 points without displaying the control. \r\n\r\n```\r\nfunction rutaAB(latA, latB)  // it doesn't use the control\r\n{\r\n    var waypoints = [];\r\n    var coords = [];\r\n    var waysp = [];\r\n \r\n   waypoints.length = 0;\r\n\r\n    if ((latA != null) && (latB != null))     \r\n \r\n    {     \r\n            \r\n        var latlngA = L.Routing.waypoint(latA);\r\n        var latlngB = L.Routing.waypoint(latB);\r\n \r\n        waypoints.push(latlngA);   \r\n        waypoints.push(latlngB);   \r\n        \r\n        var routes = null;\r\n        \r\n        routes = L.Routing.osrm({addWaypoints: false});\r\n                \r\n        routes.route(waypoints, function(err, routes) {\r\n             if (line) {\r\n                 mapa.removeLayer(line);\r\n             }\r\n             \r\n             if (err) {\r\n                 console.log(err);                 \r\n             } \r\n             else {        \r\n\r\n                 coords = routes[0].coordinates;\r\n                 waysp = routes[0].waypoints;                 \r\n                 line = L.Routing.line(routes[0],{styles:[{color: 'black', opacity: 0.15, weight: 7}, {color: 'white', opacity: 0.8, weight: 4}, {color: '#1652F4', opacity: 1, weight: 3}]}).addTo(mapa);\r\n                                                           \r\n                 var distanciaCerc = convertirKM(routes[0].summary.totalDistance);\r\n                 popup = L.popup({offset: L.point(0, -30)})\r\n                        .setLatLng(latB)\r\n                        .setContent('<p>Distancia: <b>' + distanciaCerc + '</b></p>')                    \r\n                        .openOn(mapa);\r\n                                                                 \r\n             }\r\n       });\r\n\r\n    } \r\n    else\r\n    {\r\n        alert(\"Se necesita el par Origen-Destino para calcular la ruta\");   \r\n        \r\n    }   \r\n     \r\n}\r\n"}}
{"actor":{"display_login":"rossanag"}}