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.

Issue with subscription to remove()

See original GitHub issue

I’ve tried to subscribe to remove() to do some logging after removal of item and refreshing the grid. But I can’t subscribe to remove(). It’s send DELETE request and remove element from database. I get 200 - OK from server but on client I can’t hit subscribe method after that.

Could you help me somehow?

This is what I’ve tried:'Inventory', id).remove().subscribe( () => { console.log("blah") })

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

cadin81commented, Feb 15, 2017

Since the problem was in the response (which is waiting for an object to return), I got the idea of the interceptor and used the response interceptor instead:

  RestangularProvider.addResponseInterceptor((data, operation, what, url, response) => {
    switch (operation) {
      case 'post':
      case 'put':
      case 'remove':
        if (!data)
          return {};
        return data;

That implementation worked for me. 😃

logvinoleg89commented, Feb 24, 2017

Hi @cadin81, @bojanfbm we updated Restangular. Now we handle it in default response interceptor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove a payment method from your Apple ID
Remove a payment method on your iPhone or iPad. Open the Settings app. Tap your name. Tap Payment & Shipping. Tap Edit, tap...
Read more >
Delete a Pull Subscription - SQL Server - Microsoft Learn
This topic describes how to delete a pull subscription in SQL Server by using SQL Server Management Studio, Transact-SQL, or Replication ...
Read more >
Create and use topics | Cloud Pub/Sub Documentation
This document explains how to create, update, view, and delete a Pub/Sub topic. This document also explains how to name topics and subscriptions....
Read more >
Remove Proxmox Subscription Notice (Tested to 7.1-10)
To remove the “You do not have a valid subscription for this server” popup message while logging in, run the command bellow. You'll...
Read more >
Deleting an Amazon SNS subscription and topic
Sign in to the Amazon SNS console . ... In the Delete subscription dialog box, choose Delete. The console deletes the subscription. When...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found