Skip to content

Connection problems since ureq update #44

@Phaiax

Description

@Phaiax

Hi

I noticed that the current version of ipp.rs does not support my printer anymore.

Some issue was introduced when updating the ureq and/or tls depencency.

A minimal example program that does get_attributes returns this with commit 2daaeec and until current master

Attributes:
Ok(
    IppAttributes {
        groups: [
            IppAttributeGroup {
                tag: OperationAttributes,
                attributes: {
                    "status-message": IppAttribute {
                        name: "status-message",
                        value: TextWithoutLanguage(
                            "Bad request version number!",
                        ),
                    },
                    "attributes-charset": IppAttribute {
                        name: "attributes-charset",
                        value: Charset(
                            "utf-8",
                        ),
                    },
                    "attributes-natural-language": IppAttribute {
                        name: "attributes-natural-language",
                        value: NaturalLanguage(
                            "en-us",
                        ),
                    },
                },
            },
        ],
    },
)

and this with commit 60677dd

Attributes:
Ok(
    IppAttributes {
        groups: [
            IppAttributeGroup {
                tag: OperationAttributes,
                attributes: {
                    "attributes-natural-language": IppAttribute {
                        name: "attributes-natural-language",
                        value: NaturalLanguage(
                            "en-us",
                        ),
                    },
                    "attributes-charset": IppAttribute {
                        name: "attributes-charset",
                        value: Charset(
                            "utf-8",
                        ),
                    },
                },
            },
            IppAttributeGroup {
                tag: PrinterAttributes,
                attributes: {
                    "natural-language-configured": IppAttribute {
                        name: "natural-language-configured",
                        value: NaturalLanguage(
                            "en-us",
                        ),
                    },
                    "urf-supported": IppAttribute {
                        name: "urf-supported",
                        value: Array(
                            [
                                Keyword(
                                    "W8",
                                ),
                                Keyword(
                                    "SRGB24",
                                ),
                                Keyword(
                                    "V1.5",
                                ),
                                Keyword(
                                    "RS300",
                                ),
                                Keyword(
                                    "IS7",
                                ),
... many more lines of attribute information

The status-message Bad request version number! could mean something is off with the TLS connection, but why does it even respond?

The printer url is ipp://SELPHY-DHCP-INSTANCE-0.fritz.box/ipp/print so its not a TLS connection.

Do you have any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions