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

Failing to parse vcards from .is rdap server response #28

Open
ivulfson opened this issue Nov 21, 2024 · 0 comments
Open

Failing to parse vcards from .is rdap server response #28

ivulfson opened this issue Nov 21, 2024 · 0 comments

Comments

@ivulfson
Copy link

ivulfson commented Nov 21, 2024

Disclaimer: I'm not affiliated with .is in any way. Just found it randomly:

https://rdap.isnic.is/rdap/domain/government.is

We're failing to parse vcards with vcardArray: jCard error: jCard parameters invalid.

Normally we have

                "vcard",
                [
                    [
                        "version",
                        {},
                        "text",
                        "4.0"
                    ],

Second parameter is a map. This is parsed in readParameters().

However .is responds with:

            "vcardArray": [
                "vcard",
                [
                    [
                        "version",
                        [],
                        "text",
                        "4.0"
                    ],

Second parameter is a slice. Lower in the same vcard they have a proper one:

                    [
                        "tel",
                        {
                            "type": [
                                "voice"
                            ]
                        },
                        "uri",
                        "tel:+354-898-8057"
                    ]

Will do a PR to address.

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

1 participant