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

Unsupported operand types: string + int #1485

Closed
chadclark opened this issue Jul 25, 2024 · 7 comments
Closed

Unsupported operand types: string + int #1485

chadclark opened this issue Jul 25, 2024 · 7 comments

Comments

@chadclark
Copy link

I'm running into this same issue. In my situation, I'm trying to map to the title field in the root element. It previews correctly in the feed setup, but fails each time when run.

In debug mode, I receive this TypeError:

Unsupported operand types: string + int

1. in /var/www/html/vendor/craftcms/feed-me/src/services/Process.php
at line 205

205: Plugin::info('Starting processing of node `#{i}`.', ['i' => ($step + 1)]);

Originally posted by @chadclark in #1467 (comment)

@chadclark
Copy link
Author

chadclark commented Jul 25, 2024

The feed type is json.

The feed URL (with redacted API key) is:

https://api.themoviedb.org/3/movie/10135?api_key=[redacted]&language=en-US&append_to_response=credits,release_dates,genres

Here is the content of the query:

{
	"adult": false,
	"backdrop_path": "/cUrFALlZP6Zh5SYRPSUnOYXfMhr.jpg",
	"belongs_to_collection": {
		"id": 224976,
		"name": "Road House Collection",
		"poster_path": "/cadfcktKwvKMpg9FFvCTTzj9pFY.jpg",
		"backdrop_path": "/3sC0DdygqYHesLqzFT8etDmDTAX.jpg"
	},
	"budget": 15000000,
	"genres": [
		{
			"id": 28,
			"name": "Action"
		},
		{
			"id": 53,
			"name": "Thriller"
		}
	],
	"homepage": "",
	"id": 10135,
	"imdb_id": "tt0098206",
	"origin_country": [
		"US"
	],
	"original_language": "en",
	"original_title": "Road House",
	"overview": "The Double Deuce is the meanest, loudest and rowdiest bar south of the Mason-Dixon Line, and Dalton has been hired to clean it up. He might not look like much, but the Ph.D.-educated bouncer proves he's more than capable – busting the heads of troublemakers and turning the roadhouse into a jumping hot spot. But Dalton's romance with the gorgeous Dr. Clay puts him on the bad side of cutthroat local big shot Brad Wesley.",
	"popularity": 34.991,
	"poster_path": "/r2hGyhvNneAifk7UpwAYxrkeFO4.jpg",
	"production_companies": [
		{
			"id": 60,
			"logo_path": "/1SEj4nyG3JPBSKBbFhtdcHRaIF9.png",
			"name": "United Artists",
			"origin_country": "US"
		},
		{
			"id": 206,
			"logo_path": null,
			"name": "Star Partners II Ltd.",
			"origin_country": "US"
		},
		{
			"id": 1885,
			"logo_path": "/xlvoOZr4s1PygosrwZyolIFe5xs.png",
			"name": "Silver Pictures",
			"origin_country": "US"
		}
	],
	"production_countries": [
		{
			"iso_3166_1": "US",
			"name": "United States of America"
		}
	],
	"release_date": "1989-05-19",
	"revenue": 30100000,
	"runtime": 114,
	"spoken_languages": [
		{
			"english_name": "English",
			"iso_639_1": "en",
			"name": "English"
		},
		{
			"english_name": "Portuguese",
			"iso_639_1": "pt",
			"name": "Português"
		}
	],
	"status": "Released",
	"tagline": "Dalton lives like a loner, fights like a professional. And loves like there's no tomorrow.",
	"title": "Road House",
	"video": false,
	"vote_average": 6.716,
	"vote_count": 1220,
	"credits": {
		"cast": [
			{
				"adult": false,
				"gender": 2,
				"id": 723,
				"known_for_department": "Acting",
				"name": "Patrick Swayze",
				"original_name": "Patrick Swayze",
				"popularity": 61.828,
				"profile_path": "/md10KJbLxmOZMD9dvebySJR9qE7.jpg",
				"cast_id": 1,
				"character": "James Dalton",
				"credit_id": "52fe43319251416c75007043",
				"order": 0
			},
			{
				"adult": false,
				"gender": 1,
				"id": 6473,
				"known_for_department": "Acting",
				"name": "Kelly Lynch",
				"original_name": "Kelly Lynch",
				"popularity": 36.452,
				"profile_path": "/lYpcMbWOpZ552VHPCjwjyZ2jvvw.jpg",
				"cast_id": 2,
				"character": "Dr. Elizabeth Clay",
				"credit_id": "52fe43319251416c75007047",
				"order": 1
			},
			{
				"adult": false,
				"gender": 2,
				"id": 16431,
				"known_for_department": "Acting",
				"name": "Sam Elliott",
				"original_name": "Sam Elliott",
				"popularity": 58.931,
				"profile_path": "/1K2IvGXFbKsgkExuUsRvy4F0c9e.jpg",
				"cast_id": 3,
				"character": "Wade Garrett",
				"credit_id": "52fe43319251416c7500704b",
				"order": 2
			},
			{
				"adult": false,
				"gender": 2,
				"id": 856,
				"known_for_department": "Acting",
				"name": "Ben Gazzara",
				"original_name": "Ben Gazzara",
				"popularity": 40.162,
				"profile_path": "/6VtdySQTPvoOUtCNe9qDSGut2Er.jpg",
				"cast_id": 4,
				"character": "Brad Wesley",
				"credit_id": "52fe43319251416c7500704f",
				"order": 3
			},
			{
				"adult": false,
				"gender": 2,
				"id": 63941,
				"known_for_department": "Acting",
				"name": "Marshall R. Teague",
				"original_name": "Marshall R. Teague",
				"popularity": 18.875,
				"profile_path": "/yOlxb4cz9qzp6vDAE248VXH6lTK.jpg",
				"cast_id": 5,
				"character": "Jimmy",
				"credit_id": "52fe43319251416c75007053",
				"order": 4
			},
			{
				"adult": false,
				"gender": 1,
				"id": 63942,
				"known_for_department": "Acting",
				"name": "Julie Michaels",
				"original_name": "Julie Michaels",
				"popularity": 27.216,
				"profile_path": "/hXYvvPhWbXNULOV2kge9EyH5OIC.jpg",
				"cast_id": 6,
				"character": "Denise",
				"credit_id": "52fe43319251416c75007057",
				"order": 5
			},
			{
				"adult": false,
				"gender": 2,
				"id": 60508,
				"known_for_department": "Acting",
				"name": "Red West",
				"original_name": "Red West",
				"popularity": 13.966,
				"profile_path": "/wSJw9XFodrZJEBsMHKM0EsShDjE.jpg",
				"cast_id": 17,
				"character": "Red Webster",
				"credit_id": "52fe43319251416c75007097",
				"order": 6
			},
			{
				"adult": false,
				"gender": 2,
				"id": 79744,
				"known_for_department": "Acting",
				"name": "Sunshine Parker",
				"original_name": "Sunshine Parker",
				"popularity": 14.736,
				"profile_path": "/4oTIQXo4qxQJGkNWFSopjhgdYFF.jpg",
				"cast_id": 18,
				"character": "Emmet",
				"credit_id": "52fe43319251416c7500709b",
				"order": 7
			},
			{
				"adult": false,
				"gender": 2,
				"id": 17770,
				"known_for_department": "Acting",
				"name": "Kevin Tighe",
				"original_name": "Kevin Tighe",
				"popularity": 39.985,
				"profile_path": "/t4LMNB2Rhu9SLbr64gOW5V4sW96.jpg",
				"cast_id": 20,
				"character": "Frank Tilghman",
				"credit_id": "52fe43319251416c7500709f",
				"order": 8
			},
			{
				"adult": false,
				"gender": 2,
				"id": 42746,
				"known_for_department": "Acting",
				"name": "John Doe",
				"original_name": "John Doe",
				"popularity": 12.45,
				"profile_path": "/k3oUl2OlYWETwaJbCGc5WXvAg1T.jpg",
				"cast_id": 21,
				"character": "Pat McGurn",
				"credit_id": "52fe43319251416c750070a3",
				"order": 9
			},
			{
				"adult": false,
				"gender": 1,
				"id": 42335,
				"known_for_department": "Acting",
				"name": "Kathleen Wilhoite",
				"original_name": "Kathleen Wilhoite",
				"popularity": 49.966,
				"profile_path": "/hyqJJRBN2YtxxO2OeuFW94OpSN6.jpg",
				"cast_id": 22,
				"character": "Carrie",
				"credit_id": "52fe43319251416c750070a7",
				"order": 10
			},
			{
				"adult": false,
				"gender": 2,
				"id": 106359,
				"known_for_department": "Acting",
				"name": "Travis McKenna",
				"original_name": "Travis McKenna",
				"popularity": 17.051,
				"profile_path": null,
				"cast_id": 23,
				"character": "Jack",
				"credit_id": "52fe43319251416c750070ab",
				"order": 11
			},
			{
				"adult": false,
				"gender": 2,
				"id": 129013,
				"known_for_department": "Acting",
				"name": "Roger Hewlett",
				"original_name": "Roger Hewlett",
				"popularity": 9.393,
				"profile_path": null,
				"cast_id": 24,
				"character": "Younger",
				"credit_id": "52fe43319251416c750070af",
				"order": 12
			},
			{
				"adult": false,
				"gender": 2,
				"id": 113506,
				"known_for_department": "Acting",
				"name": "Bob Jennings",
				"original_name": "Bob Jennings",
				"popularity": 10.315,
				"profile_path": "/c45Z7JV43GTWUL39eR2Nu3awGUL.jpg",
				"cast_id": 25,
				"character": "Bandstand Bouncer",
				"credit_id": "52fe43319251416c750070b3",
				"order": 13
			},
			{
				"adult": false,
				"gender": 1,
				"id": 548663,
				"known_for_department": "Acting",
				"name": "Kym Malin",
				"original_name": "Kym Malin",
				"popularity": 26.045,
				"profile_path": "/8SwDz9qTVscYoA5IvpRrjyJU3eE.jpg",
				"cast_id": 26,
				"character": "Party Girl",
				"credit_id": "56872c0dc3a36836280090ac",
				"order": 14
			},
			{
				"adult": false,
				"gender": 2,
				"id": 951198,
				"known_for_department": "Acting",
				"name": "Jeff Healey",
				"original_name": "Jeff Healey",
				"popularity": 9.158,
				"profile_path": "/pPw13aOkkpkNAQpl4iiR1Tqido6.jpg",
				"cast_id": 27,
				"character": "Cody",
				"credit_id": "57e6ca2e9251416c6900109d",
				"order": 15
			},
			{
				"adult": false,
				"gender": 2,
				"id": 60292,
				"known_for_department": "Acting",
				"name": "Gary Hudson",
				"original_name": "Gary Hudson",
				"popularity": 11.593,
				"profile_path": "/xXabn1GlAdF3n7Mcj5OUwe7WTLY.jpg",
				"cast_id": 28,
				"character": "Steve",
				"credit_id": "57e6ca57c3a36835a2009199",
				"order": 16
			},
			{
				"adult": false,
				"gender": 2,
				"id": 13661,
				"known_for_department": "Acting",
				"name": "Joe Unger",
				"original_name": "Joe Unger",
				"popularity": 10.928,
				"profile_path": "/vdelfFNmFWfQIOdL0fWaVQvYAFv.jpg",
				"cast_id": 29,
				"character": "Karpis",
				"credit_id": "57e6ca63925141413f00c42e",
				"order": 17
			},
			{
				"adult": false,
				"gender": 1,
				"id": 557539,
				"known_for_department": "Acting",
				"name": "Sheila Ryan",
				"original_name": "Sheila Ryan",
				"popularity": 4.159,
				"profile_path": null,
				"cast_id": 39,
				"character": "Judy (as Sheila Caan)",
				"credit_id": "58f2da2ac3a368085a007b2c",
				"order": 18
			},
			{
				"adult": false,
				"gender": 2,
				"id": 65827,
				"known_for_department": "Acting",
				"name": "Keith David",
				"original_name": "Keith David",
				"popularity": 51.799,
				"profile_path": "/jJLJuR7FNHYL1fB5igjj7IXzOel.jpg",
				"cast_id": 31,
				"character": "Ernie Bass",
				"credit_id": "57e6ca799251412987009fb9",
				"order": 19
			},
			{
				"adult": false,
				"gender": 1,
				"id": 11768,
				"known_for_department": "Acting",
				"name": "Patricia Tallman",
				"original_name": "Patricia Tallman",
				"popularity": 18.729,
				"profile_path": "/12nb9TIivhOdjpCPbLdj3CrCr4j.jpg",
				"cast_id": 32,
				"character": "Bandstand Babe",
				"credit_id": "57e6ca97925141413f00c449",
				"order": 20
			},
			{
				"adult": false,
				"gender": 1,
				"id": 104916,
				"known_for_department": "Acting",
				"name": "Heidi Paine",
				"original_name": "Heidi Paine",
				"popularity": 3.812,
				"profile_path": "/jE8CQyLUhF2SmfyTuimKCAuXN77.jpg",
				"cast_id": 33,
				"character": "Party Girl",
				"credit_id": "57e6cf1d9251416c690012fb",
				"order": 21
			},
			{
				"adult": false,
				"gender": 1,
				"id": 1681938,
				"known_for_department": "Acting",
				"name": "Jacklyn Palmer",
				"original_name": "Jacklyn Palmer",
				"popularity": 2.86,
				"profile_path": null,
				"cast_id": 34,
				"character": "Party Girl",
				"credit_id": "57e6cf28925141298700a214",
				"order": 22
			},
			{
				"adult": false,
				"gender": 1,
				"id": 13443,
				"known_for_department": "Acting",
				"name": "Laura Albert",
				"original_name": "Laura Albert",
				"popularity": 18.13,
				"profile_path": "/fl1wqLSHYXtj7DR8yVwvhpmdPxf.jpg",
				"cast_id": 35,
				"character": "Strip Joint Girl",
				"credit_id": "57e6cf329251412b1e009893",
				"order": 23
			},
			{
				"adult": false,
				"gender": 1,
				"id": 103856,
				"known_for_department": "Acting",
				"name": "Christina Veronica",
				"original_name": "Christina Veronica",
				"popularity": 6.884,
				"profile_path": "/npq8ambyy8BvldZNARgD3gCKF9u.jpg",
				"cast_id": 36,
				"character": "Strip Joint Girl",
				"credit_id": "57e6cf3cc3a3683525009192",
				"order": 24
			},
			{
				"adult": true,
				"gender": 1,
				"id": 99089,
				"known_for_department": "Acting",
				"name": "Jasae",
				"original_name": "Jasae",
				"popularity": 2.569,
				"profile_path": "/nnsGg4i1EzbkhDZLQOOwwIUZPaf.jpg",
				"cast_id": 37,
				"character": "Strip Joint Girl",
				"credit_id": "57e6cf48925141395b009442",
				"order": 25
			},
			{
				"adult": false,
				"gender": 1,
				"id": 1683081,
				"known_for_department": "Acting",
				"name": "Michele Burger",
				"original_name": "Michele Burger",
				"popularity": 1.495,
				"profile_path": null,
				"cast_id": 38,
				"character": "Strip Joint Girl",
				"credit_id": "57e6cf519251412b1e00989d",
				"order": 26
			},
			{
				"adult": false,
				"gender": 2,
				"id": 33016,
				"known_for_department": "Acting",
				"name": "Terry Funk",
				"original_name": "Terry Funk",
				"popularity": 14.435,
				"profile_path": "/4MjY3dWMC2FiqIZLFBzj8RN9SFW.jpg",
				"cast_id": 40,
				"character": "Morgan",
				"credit_id": "593cd48692514105e2018f65",
				"order": 27
			},
			{
				"adult": false,
				"gender": 1,
				"id": 2568558,
				"known_for_department": "Acting",
				"name": "Susan Lentini",
				"original_name": "Susan Lentini",
				"popularity": 9.475,
				"profile_path": null,
				"cast_id": 43,
				"character": "Bandstand Babe",
				"credit_id": "5f6644d2af3da60036300bd9",
				"order": 28
			},
			{
				"adult": false,
				"gender": 1,
				"id": 2510665,
				"known_for_department": "Acting",
				"name": "Cheryl Baker",
				"original_name": "Cheryl Baker",
				"popularity": 0.628,
				"profile_path": null,
				"cast_id": 44,
				"character": "Well-Endowed Wife",
				"credit_id": "5fd1a958d7cd0600407ec9a2",
				"order": 29
			},
			{
				"adult": false,
				"gender": 1,
				"id": 2888341,
				"known_for_department": "Acting",
				"name": "Dawn Ciccone",
				"original_name": "Dawn Ciccone",
				"popularity": 2.033,
				"profile_path": null,
				"cast_id": 45,
				"character": "Steve's Girl",
				"credit_id": "5fd1a97af90b19003b8d8239",
				"order": 30
			},
			{
				"adult": false,
				"gender": 2,
				"id": 87841,
				"known_for_department": "Acting",
				"name": "Benny Urquidez",
				"original_name": "Benny Urquidez",
				"popularity": 18.248,
				"profile_path": "/bCzckCiAvKvnI0yVD6vkqVObsa8.jpg",
				"cast_id": 46,
				"character": "Laughing Henchman (uncredited)",
				"credit_id": "5fd6ba4b8c44b9003bd7d838",
				"order": 31
			},
			{
				"adult": false,
				"gender": 1,
				"id": 3009898,
				"known_for_department": "Acting",
				"name": "Julie Royer",
				"original_name": "Julie Royer",
				"popularity": 1.711,
				"profile_path": null,
				"cast_id": 47,
				"character": "Steve's Girl",
				"credit_id": "604dafc5ae28110029d1abe7",
				"order": 32
			},
			{
				"adult": false,
				"gender": 2,
				"id": 98579,
				"known_for_department": "Acting",
				"name": "Tiny Ron",
				"original_name": "Tiny Ron",
				"popularity": 12.573,
				"profile_path": "/z70iHJLvnqHRS9Ti9rm6ee8FXCJ.jpg",
				"cast_id": 48,
				"character": "Mountain",
				"credit_id": "60ed590e6dc507005fc3844b",
				"order": 33
			},
			{
				"adult": false,
				"gender": 2,
				"id": 2458619,
				"known_for_department": "Acting",
				"name": "Chino 'Fats' Williams",
				"original_name": "Chino 'Fats' Williams",
				"popularity": 6.479,
				"profile_path": null,
				"cast_id": 50,
				"character": "Derelict",
				"credit_id": "62d3b0dd158c85029d58c6f6",
				"order": 34
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1214614,
				"known_for_department": "Acting",
				"name": "Christopher Collins",
				"original_name": "Christopher Collins",
				"popularity": 5.512,
				"profile_path": "/5CqYspZwXh4gKEENDJDH1fvoffv.jpg",
				"cast_id": 51,
				"character": "Sharing Husband",
				"credit_id": "634463e9cdf2e6007ad1ff19",
				"order": 35
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1219325,
				"known_for_department": "Acting",
				"name": "Michael Rider",
				"original_name": "Michael Rider",
				"popularity": 3.458,
				"profile_path": "/cIumWSbjbnKz0OTtgNkkZ4hjkj4.jpg",
				"cast_id": 52,
				"character": "O'Connor",
				"credit_id": "63cd08f09a6435008abb9c11",
				"order": 36
			},
			{
				"adult": false,
				"gender": 2,
				"id": 192350,
				"known_for_department": "Acting",
				"name": "John William Young",
				"original_name": "John William Young",
				"popularity": 7.777,
				"profile_path": "/xzXTOOR4SLLUKBXQirCQMkDtFdh.jpg",
				"cast_id": 53,
				"character": "Tinker",
				"credit_id": "63cd0963d363e500de0fd5c3",
				"order": 37
			},
			{
				"adult": false,
				"gender": 2,
				"id": 945705,
				"known_for_department": "Production",
				"name": "Joey Plewa",
				"original_name": "Joey Plewa",
				"popularity": 5.571,
				"profile_path": "/tZAUtBeIhHTenET7COh6I1j1joy.jpg",
				"cast_id": 83,
				"character": "Bandstand Tough Guy",
				"credit_id": "6447a9e9e18b9705065b0d38",
				"order": 38
			},
			{
				"adult": false,
				"gender": 0,
				"id": 1614499,
				"known_for_department": "Acting",
				"name": "Kurt James Stefka",
				"original_name": "Kurt James Stefka",
				"popularity": 1.861,
				"profile_path": null,
				"cast_id": 91,
				"character": "Hank",
				"credit_id": "66449d3a88821f7e162ec415",
				"order": 39
			}
		],
		"crew": [
			{
				"adult": false,
				"gender": 2,
				"id": 1060,
				"known_for_department": "Camera",
				"name": "Dean Cundey",
				"original_name": "Dean Cundey",
				"popularity": 13.434,
				"profile_path": "/5f95wKLwh4OTjGEzNkDhOdixDxU.jpg",
				"credit_id": "52fe43319251416c75007087",
				"department": "Camera",
				"job": "Director of Photography"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1091,
				"known_for_department": "Production",
				"name": "Joel Silver",
				"original_name": "Joel Silver",
				"popularity": 8.091,
				"profile_path": "/5YWxIdEql8yyGWIcF1X3QPQ40u6.jpg",
				"credit_id": "52fe43319251416c7500707b",
				"department": "Production",
				"job": "Producer"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 63945,
				"known_for_department": "Writing",
				"name": "R. Lance Hill",
				"original_name": "R. Lance Hill",
				"popularity": 4.41,
				"profile_path": null,
				"credit_id": "52fe43319251416c75007063",
				"department": "Writing",
				"job": "Screenplay"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 4699,
				"known_for_department": "Production",
				"name": "Steve Perry",
				"original_name": "Steve Perry",
				"popularity": 8.5,
				"profile_path": null,
				"credit_id": "52fe43319251416c75007075",
				"department": "Production",
				"job": "Executive Producer"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1099,
				"known_for_department": "Editing",
				"name": "John F. Link",
				"original_name": "John F. Link",
				"popularity": 1.728,
				"profile_path": null,
				"credit_id": "52fe43319251416c7500708d",
				"department": "Editing",
				"job": "Editor"
			},
			{
				"adult": false,
				"gender": 0,
				"id": 8251,
				"known_for_department": "Writing",
				"name": "Hilary Henkin",
				"original_name": "Hilary Henkin",
				"popularity": 5.331,
				"profile_path": null,
				"credit_id": "52fe43319251416c75007069",
				"department": "Writing",
				"job": "Screenplay"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 63943,
				"known_for_department": "Directing",
				"name": "Rowdy Herrington",
				"original_name": "Rowdy Herrington",
				"popularity": 7.479,
				"profile_path": "/fUMl2WpYLJbQh3uRMlBAL7fdeBq.jpg",
				"credit_id": "52fe43319251416c7500705d",
				"department": "Directing",
				"job": "Director"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 63946,
				"known_for_department": "Production",
				"name": "Tim Moore",
				"original_name": "Tim Moore",
				"popularity": 8.267,
				"profile_path": null,
				"credit_id": "52fe43319251416c7500706f",
				"department": "Production",
				"job": "Executive Producer"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 7714,
				"known_for_department": "Sound",
				"name": "Michael Kamen",
				"original_name": "Michael Kamen",
				"popularity": 13.741,
				"profile_path": "/e1n50csgg8v4vtwVNwEq5O45Wqw.jpg",
				"credit_id": "52fe43319251416c75007081",
				"department": "Sound",
				"job": "Original Music Composer"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 7715,
				"known_for_department": "Editing",
				"name": "Frank J. Urioste",
				"original_name": "Frank J. Urioste",
				"popularity": 5.499,
				"profile_path": null,
				"credit_id": "52fe43319251416c75007093",
				"department": "Editing",
				"job": "Editor"
			},
			{
				"adult": false,
				"gender": 0,
				"id": 1927604,
				"known_for_department": "Crew",
				"name": "Danny Castle",
				"original_name": "Danny Castle",
				"popularity": 0.678,
				"profile_path": null,
				"credit_id": "5c58503892514116fc5a4cc6",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 0,
				"id": 1511713,
				"known_for_department": "Production",
				"name": "Jack English",
				"original_name": "Jack English",
				"popularity": 1.446,
				"profile_path": null,
				"credit_id": "5e7bea7faafebd00159c28a6",
				"department": "Production",
				"job": "Location Manager"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1316296,
				"known_for_department": "Costume & Make-Up",
				"name": "Scott H. Eddo",
				"original_name": "Scott H. Eddo",
				"popularity": 10.672,
				"profile_path": null,
				"credit_id": "619c90dd63536a00619aafcc",
				"department": "Costume & Make-Up",
				"job": "Makeup Department Head"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 91782,
				"known_for_department": "Crew",
				"name": "Jeannie Epper",
				"original_name": "Jeannie Epper",
				"popularity": 15.813,
				"profile_path": "/ofOKbu0cPt8pEJahbgXCPLBUF6N.jpg",
				"credit_id": "6420e9592dc9dc00a02cfe8c",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 161597,
				"known_for_department": "Acting",
				"name": "Gary Epper",
				"original_name": "Gary Epper",
				"popularity": 14.231,
				"profile_path": "/xrnWgHTC5egz5f4FHsRQQyv0shl.jpg",
				"credit_id": "6420eb791dbc8800793196e2",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 574380,
				"known_for_department": "Crew",
				"name": "Danny Epper",
				"original_name": "Danny Epper",
				"popularity": 8.117,
				"profile_path": "/vyXuYvXNdbmwvabEWYkOCwppJIK.jpg",
				"credit_id": "6420eb7e1dbc88007fe30b63",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 161285,
				"known_for_department": "Acting",
				"name": "Tony Epper",
				"original_name": "Tony Epper",
				"popularity": 11.373,
				"profile_path": "/bIFX8XhlrDdO5vhr9selbFD5cz5.jpg",
				"credit_id": "6420eb8308cf8700defe9010",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 939869,
				"known_for_department": "Crew",
				"name": "Donna Evans",
				"original_name": "Donna Evans",
				"popularity": 9.295,
				"profile_path": "/sfh8yXTzKrgqjrvFaBFCk8gLTM7.jpg",
				"credit_id": "6420eb8a2dc9dc00bf5924ec",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 4755,
				"known_for_department": "Directing",
				"name": "David R. Ellis",
				"original_name": "David R. Ellis",
				"popularity": 5.317,
				"profile_path": "/zw1ccRyxUBy0y7JDdXTZAYg96xd.jpg",
				"credit_id": "6420eb956a34480086259bed",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 8432,
				"known_for_department": "Acting",
				"name": "Buddy Joe Hooker",
				"original_name": "Buddy Joe Hooker",
				"popularity": 7.438,
				"profile_path": "/sQkPgACtSAPscomfa650C2hsubm.jpg",
				"credit_id": "6420eb9b8d22fc00cc0f0cc0",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 95192,
				"known_for_department": "Acting",
				"name": "Randy Hall",
				"original_name": "Randy Hall",
				"popularity": 7.308,
				"profile_path": "/odl5vFiM1iSiX4sw2OjWcpKnklS.jpg",
				"credit_id": "6420eba508cf8700a014f2fa",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 936505,
				"known_for_department": "Crew",
				"name": "Chris Howell",
				"original_name": "Chris Howell",
				"popularity": 8.919,
				"profile_path": null,
				"credit_id": "6420ebaa6a344800ccb218c0",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 24969,
				"known_for_department": "Acting",
				"name": "Henry Kingi",
				"original_name": "Henry Kingi",
				"popularity": 10.427,
				"profile_path": "/cThdKH6fn4faqei4DC2H3BQNkgI.jpg",
				"credit_id": "6420ebb453466100aa004d57",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1442535,
				"known_for_department": "Crew",
				"name": "Chuck Picerni Jr.",
				"original_name": "Chuck Picerni Jr.",
				"popularity": 13.493,
				"profile_path": "/yE5QtXUzcrnCzMRctZL8F5g842B.jpg",
				"credit_id": "6420ebbc2dc9dc00fd1b88d5",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 106730,
				"known_for_department": "Acting",
				"name": "Branscombe Richmond",
				"original_name": "Branscombe Richmond",
				"popularity": 25.05,
				"profile_path": "/4UFwrT68uzusdG1hcPARjxpJUIx.jpg",
				"credit_id": "6420ebc768929c007c43935d",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1894149,
				"known_for_department": "Crew",
				"name": "Bob Orrison",
				"original_name": "Bob Orrison",
				"popularity": 4.553,
				"profile_path": "/eeln1a3ChjxY7JdQWz72VPJ0LKv.jpg",
				"credit_id": "6420ebcc1dbc880079319715",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 14771,
				"known_for_department": "Crew",
				"name": "R.A. Rondell",
				"original_name": "R.A. Rondell",
				"popularity": 7.953,
				"profile_path": "/wTRVhxhcVIruSGFR8PfIgRZUzDR.jpg",
				"credit_id": "6420ebdd1dbc8800a0415c8c",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 76422,
				"known_for_department": "Directing",
				"name": "Ric Roman Waugh",
				"original_name": "Ric Roman Waugh",
				"popularity": 12.347,
				"profile_path": "/cu0MJd4exIgSLgaE0uwMDTFQcpA.jpg",
				"credit_id": "6420ebed2dc9dc00bf592526",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 176475,
				"known_for_department": "Acting",
				"name": "Ted White",
				"original_name": "Ted White",
				"popularity": 21.343,
				"profile_path": "/c6YvRrH8uSKxw9hCjD0qBj3wBot.jpg",
				"credit_id": "6420ebf768929c00fd9a5c6f",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 61838,
				"known_for_department": "Crew",
				"name": "Glenn R. Wilder",
				"original_name": "Glenn R. Wilder",
				"popularity": 7.084,
				"profile_path": "/8YSkfLv8gvqxZxH87cG9NXoIMjr.jpg",
				"credit_id": "6420ebfd1dbc8800fdc323b9",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 1880383,
				"known_for_department": "Crew",
				"name": "Janet Brady",
				"original_name": "Janet Brady",
				"popularity": 8.077,
				"profile_path": null,
				"credit_id": "6420ec0c23be4600febe1db7",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 999716,
				"known_for_department": "Crew",
				"name": "Gary Combs",
				"original_name": "Gary Combs",
				"popularity": 6.796,
				"profile_path": "/7cLJ3YVZcDxEZgQCqIxpfMDXDlR.jpg",
				"credit_id": "6420ec178d22fc007cffb05f",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 53593,
				"known_for_department": "Acting",
				"name": "Pete Antico",
				"original_name": "Pete Antico",
				"popularity": 7.044,
				"profile_path": "/eG7VI6yLvSfPxTGKsv3vRaNCCHl.jpg",
				"credit_id": "6420ec1d1dbc8800fdc323d4",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1118402,
				"known_for_department": "Crew",
				"name": "Al Di Sarro",
				"original_name": "Al Di Sarro",
				"popularity": 3.945,
				"profile_path": null,
				"credit_id": "6420ec3423be46007d5455c1",
				"department": "Crew",
				"job": "Special Effects Coordinator"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 91243,
				"known_for_department": "Crew",
				"name": "Charlie Picerni",
				"original_name": "Charlie Picerni",
				"popularity": 15.588,
				"profile_path": "/kRO5tGbhZOPnUH46keu01i5UYd.jpg",
				"credit_id": "6420ec3f53466100857a0c55",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 91243,
				"known_for_department": "Crew",
				"name": "Charlie Picerni",
				"original_name": "Charlie Picerni",
				"popularity": 15.588,
				"profile_path": "/kRO5tGbhZOPnUH46keu01i5UYd.jpg",
				"credit_id": "6420ec4653466100857a0c5d",
				"department": "Directing",
				"job": "Second Unit Director"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 7719,
				"known_for_department": "Costume & Make-Up",
				"name": "Marilyn Vance",
				"original_name": "Marilyn Vance",
				"popularity": 13.871,
				"profile_path": "/tdNcz7CYAFFKoaYm4EvWec4z3gv.jpg",
				"credit_id": "6420ec4f1dbc8800fdc323fb",
				"department": "Costume & Make-Up",
				"job": "Costume Design"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1216735,
				"known_for_department": "Directing",
				"name": "Paul Abascal",
				"original_name": "Paul Abascal",
				"popularity": 4.232,
				"profile_path": null,
				"credit_id": "6420ec5a8d22fc00cc0f0d50",
				"department": "Costume & Make-Up",
				"job": "Key Hair Stylist"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 7718,
				"known_for_department": "Art",
				"name": "Philip Leonard",
				"original_name": "Philip Leonard",
				"popularity": 2.519,
				"profile_path": null,
				"credit_id": "6420ec6053466100f0ec24f8",
				"department": "Art",
				"job": "Set Decoration"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 1097,
				"known_for_department": "Production",
				"name": "Jackie Burch",
				"original_name": "Jackie Burch",
				"popularity": 7.552,
				"profile_path": null,
				"credit_id": "6420ec6a23be4600c0f5e086",
				"department": "Production",
				"job": "Casting"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 16652,
				"known_for_department": "Art",
				"name": "William J. Durrell Jr.",
				"original_name": "William J. Durrell Jr.",
				"popularity": 2.019,
				"profile_path": null,
				"credit_id": "6420ec6f8d22fc01128a76fe",
				"department": "Art",
				"job": "Art Direction"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 169628,
				"known_for_department": "Crew",
				"name": "Jeff Imada",
				"original_name": "Jeff Imada",
				"popularity": 7.633,
				"profile_path": "/sUNSaNQreSHYaJvKr0SfiBqMPDV.jpg",
				"credit_id": "6427221c960cde0126341368",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 122106,
				"known_for_department": "Crew",
				"name": "Gary McLarty",
				"original_name": "Gary McLarty",
				"popularity": 18.082,
				"profile_path": "/fLGQttDFd8Qd0dZXWFA4mFfqETE.jpg",
				"credit_id": "648dc22f2f8d0900e3854732",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 23285,
				"known_for_department": "Crew",
				"name": "Jeffrey J. Dashnaw",
				"original_name": "Jeffrey J. Dashnaw",
				"popularity": 11.515,
				"profile_path": "/5Sw0YV4U8Yg7BpN8yVX7vVc8y8x.jpg",
				"credit_id": "64b485ec23d2780107311a02",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 33017,
				"known_for_department": "Acting",
				"name": "Allan Graf",
				"original_name": "Allan Graf",
				"popularity": 21.799,
				"profile_path": "/lF8WR4XVnfkE55RfX9LDssZxygC.jpg",
				"credit_id": "65187517ea84c700eb995449",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 1,
				"id": 16576,
				"known_for_department": "Crew",
				"name": "Simone Boisseree",
				"original_name": "Simone Boisseree",
				"popularity": 6.454,
				"profile_path": null,
				"credit_id": "652c800a358da75b5dfebecc",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 1379388,
				"known_for_department": "Crew",
				"name": "Tommy J. Huff",
				"original_name": "Tommy J. Huff",
				"popularity": 13.034,
				"profile_path": null,
				"credit_id": "658f404e1f748b6e5f985296",
				"department": "Crew",
				"job": "Stunts"
			},
			{
				"adult": false,
				"gender": 2,
				"id": 78395,
				"known_for_department": "Crew",
				"name": "Norman Howell",
				"original_name": "Norman Howell",
				"popularity": 12.011,
				"profile_path": "/pgKSdCN2kA17u7P5HZClWUmXJTb.jpg",
				"credit_id": "66104f686c8492014a0b769e",
				"department": "Crew",
				"job": "Stunts"
			}
		]
	},
	"release_dates": {
		"results": [
			{
				"iso_3166_1": "AU",
				"release_dates": [
					{
						"certification": "R 18+",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-06-15T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "DE",
				"release_dates": [
					{
						"certification": "18",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-07-06T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "DK",
				"release_dates": [
					{
						"certification": "",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-08-03T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "ES",
				"release_dates": [
					{
						"certification": "18",
						"descriptors": [],
						"iso_639_1": "es",
						"note": "",
						"release_date": "1989-07-20T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "FR",
				"release_dates": [
					{
						"certification": "U",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1990-01-03T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "GB",
				"release_dates": [
					{
						"certification": "18",
						"descriptors": [],
						"iso_639_1": "en",
						"note": "",
						"release_date": "1989-11-10T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "HU",
				"release_dates": [
					{
						"certification": "16",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-12-07T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "IE",
				"release_dates": [
					{
						"certification": "18",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-11-10T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "IT",
				"release_dates": [
					{
						"certification": "",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-09-01T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "PL",
				"release_dates": [
					{
						"certification": "18",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-05-19T00:00:00.000Z",
						"type": 3
					}
				]
			},
			{
				"iso_3166_1": "SK",
				"release_dates": [
					{
						"certification": "15",
						"descriptors": [],
						"iso_639_1": "sk",
						"note": "TV Markíza",
						"release_date": "2009-08-16T00:00:00.000Z",
						"type": 6
					}
				]
			},
			{
				"iso_3166_1": "US",
				"release_dates": [
					{
						"certification": "R",
						"descriptors": [],
						"iso_639_1": "",
						"note": "",
						"release_date": "1989-05-19T00:00:00.000Z",
						"type": 3
					}
				]
			}
		]
	}
}

@i-just
Copy link
Contributor

i-just commented Aug 30, 2024

Hi @chadclark, thanks for all the details.
Can you please confirm the CMS and Feed Me versions and share a screenshot of the mapping screen? What do you have selected as the root element?

@chadclark
Copy link
Author

Hi @i-just. Thanks for looking into this!

  • CraftCMS Pro 5.3.6
  • FeedMe 6.3.0

Here is the root element:
Screenshot 2024-08-30 at 5 35 08 PM

Here is the mapping screen:
Screen Shot 2024-08-30 at 17 38 44

@i-just
Copy link
Contributor

i-just commented Sep 2, 2024

Thanks for the screenshots. I can now replicate the issue you're having.

The root (primary) element needs to be something repeatable. To achieve this, you can, for example, wrap the entire snippet you provided in square braces like so:

[
  {
    "adult": false,
    "backdrop_path": "/cUrFALlZP6Zh5SYRPSUnOYXfMhr.jpg",
    "belongs_to_collection": {
      "id": 224976,
      "name": "Road House Collection",
      "poster_path": "/cadfcktKwvKMpg9FFvCTTzj9pFY.jpg",
      "backdrop_path": "/3sC0DdygqYHesLqzFT8etDmDTAX.jpg"
    },
    "budget": 15000000,
    (...)
  }
]

The hint is in the primary element mapping screenshot. The data snippet you provided only has one movie in it, but the primary element screen shows 28 elements, which means 28 movies in your case, and that doesn't match the data you have.

I hope this helps!
I will close this now, but feel free to reach out if you have any further questions.

@i-just i-just closed this as completed Sep 2, 2024
@chadclark
Copy link
Author

Thanks for your help, @i-just. I am definitely seeing the issue now. As this is an external API source, is it possible for me to prepend the brackets via the Feed Me configuration?

@i-just
Copy link
Contributor

i-just commented Sep 6, 2024

Not a problem.

There are various events that you could use.
This is a very basic example that does the trick in this particular case:

Event::on(DataTypes::class, DataTypes::EVENT_AFTER_PARSE_FEED, function(FeedDataEvent $event) {
    if ($event->feedId == 3 && $event->response['success']) {
        $event->response['data'] = [$event->response['data']];
    }
});

@chadclark
Copy link
Author

Thanks @i-just! This is extremely helpful! I really appreciate the guidance.

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