0

Why am i getting this

PUT file:///C:/Users/User/Documents/Work/someapi/word/15 net::ERR_FILE_NOT_FOUND when i am updating

$http({
    url: url + Id,
    method: "PUT", //update
    dataType: 'json',
    data: JSON.stringify({
      Id: '154',
      word: $scope.new,
      Date: new Date(),
    }),
    headers: {
      'Content-Type': 'application/JSON'
    }

  })
  .success(function(result) {
    console.log(result);
  })

am not updating a file . am confused.

2
  • Can you please share the URL which are you setting up? Commented Jul 21, 2015 at 10:38
  • @Chander.k thank you, the url address was missing http:// :) Commented Jul 21, 2015 at 11:05

1 Answer 1

1

Please check if URL is valid. make sure you are using http://,https:// in URL

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.