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.

this.options.uri.clone is not a function in new API

See original GitHub issue

Describe the bug I am trying to use the new API in SIP.js 0.15.3 and am unable to get a URI.

Logs Following the docs when I try to use the method userAgent.makeTargetURI(“someuser@somesubdomain.onsip.com”) results in the following error: this.options.uri.clone is not a function. (in 'this.options.uri.clone()', 'this.options.uri.clone' is undefined)

And attempting to simply give a URI in the form of a string directly will result in the following error: ruri.clone is not a function. (In 'ruri.clone()','ruri.clone' is undefined) I have used the exact string before with the previous API so I know it is valid.

To Reproduce (if possible) Follow the docs on new API in react native.

Expected behavior String to be parsed into a valid URI.

Environment Information

  React Native Environment Info:
    System:
      OS: macOS 10.14.4
      CPU: (4) x64 Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
      Memory: 205.08 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.1.0 - /usr/local/bin/node
      npm: 6.10.2 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    IDEs:
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.8.3 => 16.8.6 
      react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-svg: 9.5.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
egreenmachinecommented, Jul 29, 2019

I pushed 36fa941f24f1adce3f55de3c66da2a79900a63ad which should resolve your issue with the React SDH

1reaction
egreenmachinecommented, Jul 29, 2019

Are you setting the uri as a string or a URI object? it is required to be a URI object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

clone is not a function - Stack Overflow
I get a similar output if I do console.log(new Date()) . So I would say, pass the value to momentjs before you are...
Read more >
TypeError: e.clone is not a function - Dropbox Community
Solved: Hi All! I'm working on a VueJS App with Axios library. I just want to authorize my WebApp to access to my...
Read more >
URI.js - API Documentation - medialize at github
Constructing an URI. cloning an URI instance; href() · Working with URI parts. protocol(), scheme() · Working with the query string. search(), query()...
Read more >
structuredClone is not a function - LWC
[structuredClone is not a function]. Can someone explain what it is about LWC that makes this function not available? Is it due to...
Read more >
How to solve the "is not a function" error in JavaScript
Sometimes, however, we must pay attention. In particular, in Node.js we use require() to load external modules and files. This can cause, in...
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