question-mark
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.

Null value getting passed as String in params

See original GitHub issue
params = {filter: Null}
Restangular.all('employees').getList(params)

The Null value is being generated from the ui-router’s params, so I’m not sure who’s issue this is, but when I pass their object (with a null value) into restangular, restangular translates it into a string

/employees/?filter=null

instead I need

/employees/?filter=

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
mgontocommented, May 30, 2013

Hey,

null should be in lowercase. Try if this works with null

0reactions
chanakyachatterjeecommented, Jul 6, 2018

just dont pass any value … like /employees/?filter=

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to send NULL in HTTP query string? - Stack Overflow
Use a constant, like "NULL" or "~" . That works for booleans & numbers, but not for strings, as that might be the...
Read more >
null value in query string - MSDN - Microsoft
I'm using webservice to integrate asp.net app with PeopleSoft. Sometimes, the value that I get from a querystring (eg in url below, request...
Read more >
Passing empty or null values in GET request of Rest Service
Hi I have created a query for my front end Search form which will work if no parameters is given it will load...
Read more >
jQuery.param outputs "null" and "undefined" in the query string
Current behaviour is not correct: a parameter with values null or undefined will be serialized the same as "null" or "undefined" (string) which...
Read more >
A Variable Passed from my LWC to Apex Becomes Null
1 @AuraEnabled 2 public static String getBooleanSearchText(String objectApiName, String jsonFilters) { 3 System.debug(jsonFilters); [...] I get ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found