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

Initial sync: Error creating Monica contact field: ['The selected contact field type id is invalid.'] #25

Closed
Turochamp opened this issue Aug 9, 2021 · 2 comments · Fixed by #27
Assignees
Labels
bug Something isn't working

Comments

@Turochamp
Copy link
Contributor

Turochamp commented Aug 9, 2021

From log:
2021-08-09 11:50:47,253 WARNING 'Zanna B' ('461870'): Error updating Monica contact phone: 'Zanna B' ('461870'): Error creating Monica contact field: ['The selected contact field type id is invalid.']

May the cause be similar to #22? If so then here is output from:
http://my-monica-instance/api/contactfieldtypes/

{
    "data": [
        {
            "id": 167709,
            "object": "contactfieldtype",
            "name": "Email",
            "fontawesome_icon": "fa fa-envelope-open-o",
            "protocol": "mailto:",
            "delible": false,
            "type": "email",
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167710,
            "object": "contactfieldtype",
            "name": "Phone",
            "fontawesome_icon": "fa fa-volume-control-phone",
            "protocol": "tel:",
            "delible": false,
            "type": "phone",
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167711,
            "object": "contactfieldtype",
            "name": "Facebook",
            "fontawesome_icon": "fa fa-facebook-official",
            "protocol": "https://facebook.com/",
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167712,
            "object": "contactfieldtype",
            "name": "Twitter",
            "fontawesome_icon": "fa fa-twitter-square",
            "protocol": null,
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167713,
            "object": "contactfieldtype",
            "name": "Whatsapp",
            "fontawesome_icon": "fa fa-whatsapp",
            "protocol": "https://wa.me/",
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167714,
            "object": "contactfieldtype",
            "name": "Telegram",
            "fontawesome_icon": "fa fa-telegram",
            "protocol": "telegram:",
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 167715,
            "object": "contactfieldtype",
            "name": "LinkedIn",
            "fontawesome_icon": "fa fa-linkedin-square",
            "protocol": null,
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-12T20:03:02Z",
            "updated_at": "2020-10-12T20:03:02Z"
        },
        {
            "id": 168019,
            "object": "contactfieldtype",
            "name": "Teams etc",
            "fontawesome_icon": null,
            "protocol": null,
            "delible": true,
            "type": null,
            "account": {
                "id": 24528
            },
            "created_at": "2020-10-16T11:00:23Z",
            "updated_at": "2021-03-03T11:45:45Z"
        }
    ],
    "links": {
        "first": "http://my-monica-instance/api/contactfieldtypes?page=1",
        "last": "http://my-monica-instance/api/contactfieldtypes?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "❮ Previous",
                "active": false
            },
            {
                "url": "http://my-monica-instance/api/contactfieldtypes?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next ❯",
                "active": false
            }
        ],
        "path": "http://my-monica-instance/api/contactfieldtypes",
        "per_page": 15,
        "to": 8,
        "total": 8
    }
}
@antonplagemann
Copy link
Owner

You're completely right, thats the (almost) same cause 💯 🏅
I'll fix that soon and do a check now if i have more of those diamonds hiding in the code 😊 😅
Thanks for all details and the report!

@antonplagemann antonplagemann self-assigned this Aug 15, 2021
@antonplagemann antonplagemann added the bug Something isn't working label Aug 15, 2021
@Turochamp
Copy link
Contributor Author

Hi @antonplagemann
Great fix! Tested with the new version and there are no more errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants