Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemotingFailure Error: Cannot convert "JNull" to "Unit" #73

Closed
nojaf opened this issue Aug 31, 2018 · 4 comments
Closed

RemotingFailure Error: Cannot convert "JNull" to "Unit" #73

nojaf opened this issue Aug 31, 2018 · 4 comments

Comments

@nojaf
Copy link
Contributor

nojaf commented Aug 31, 2018

Servers sends:

Fable.Remoting: Returning serialized result back to client
{"Ok":null}

And return type is

type SecureResponse<'t> = Result<'t, AuthenticationError>
Async<SecureResponse<unit>>

RemotingFailure Error: Cannot convert "JNull" to "Unit".
Using latest fable2 bits.

@Zaid-Ajaj
Copy link
Owner

Thanks for the report @nojaf, as a workaround for now, you can change unit to bool or int for example

I will try to fix it asap

@nojaf
Copy link
Contributor Author

nojaf commented Sep 1, 2018

Yes, changed it to int as a workaround. No need for asap fix, just letting you know.

@Zaid-Ajaj
Copy link
Owner

I have just published a new version of Client after fixing the issue in SimpleJson, can you please try it out?

@nojaf
Copy link
Contributor Author

nojaf commented Sep 2, 2018

Thanks, it works now.

@nojaf nojaf closed this as completed Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants