BioPhoton / BioPhoton/ng-drupal-7-services

Error: An invalid or illegal string was specified

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
26
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Hello,

My Controller looks like this:

```
mApp.controller('LoginController', ['$scope', 'UserResource', function($scope, UserResource) {
$scope.submit = function(user) {
console.log(user);

UserResource.login({
"username" : user.name,
"password": user.pass
}).then(
// Login success.
function(data) {
console.log('user login success');
},
// Login error.
function(data) {
console.log('user login error');
}
);
};
}]);
```

It shows the following error:

```
Error: An invalid or illegal string was specified
fg/<@http://localhost:8000/android/www/assets/lib/angular.min.js:102:169
n@http://localhost:8000/android/www/assets/lib/angular.min.js:98:460
m/g<@http://localhost:8000/android/www/assets/lib/angular.min.js:95:489
e/<@http://localhost:8000/android/www/assets/lib/angular.min.js:130:409
uf/this.$get

Contributor guide

Open the contributing guide

Research direction

Start with the LoginController snippet and the UserResource.login call, then reproduce the error using the reported AngularJS stack trace in angular.min.js. Done means identifying the cause of the invalid string and documenting or applying a verified fix for the login request.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.